chore: get tags from exist memos
This commit is contained in:
parent
babeb468c1
commit
ceef257348
1 changed files with 2 additions and 0 deletions
|
|
@ -13,9 +13,11 @@ func (s *Server) registerTagRoutes(g *echo.Group) {
|
||||||
g.GET("/tag", func(c echo.Context) error {
|
g.GET("/tag", func(c echo.Context) error {
|
||||||
userID := c.Get(getUserIDContextKey()).(int)
|
userID := c.Get(getUserIDContextKey()).(int)
|
||||||
contentSearch := "#"
|
contentSearch := "#"
|
||||||
|
normalRowStatus := api.Normal
|
||||||
memoFind := api.MemoFind{
|
memoFind := api.MemoFind{
|
||||||
CreatorID: &userID,
|
CreatorID: &userID,
|
||||||
ContentSearch: &contentSearch,
|
ContentSearch: &contentSearch,
|
||||||
|
RowStatus: &normalRowStatus,
|
||||||
}
|
}
|
||||||
|
|
||||||
memoList, err := s.Store.FindMemoList(&memoFind)
|
memoList, err := s.Store.FindMemoList(&memoFind)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue