chore: get tags from exist memos

This commit is contained in:
boojack
2022-06-21 23:29:07 +08:00
parent babeb468c1
commit ceef257348

View File

@ -13,9 +13,11 @@ func (s *Server) registerTagRoutes(g *echo.Group) {
g.GET("/tag", func(c echo.Context) error {
userID := c.Get(getUserIDContextKey()).(int)
contentSearch := "#"
normalRowStatus := api.Normal
memoFind := api.MemoFind{
CreatorID: &userID,
ContentSearch: &contentSearch,
RowStatus: &normalRowStatus,
}
memoList, err := s.Store.FindMemoList(&memoFind)