chore: get tags from exist memos

pull/84/head
boojack 3 years ago
parent babeb468c1
commit ceef257348

@ -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…
Cancel
Save