Commit ceef2573 authored by boojack's avatar boojack

chore: get tags from exist memos

parent babeb468
...@@ -13,9 +13,11 @@ func (s *Server) registerTagRoutes(g *echo.Group) { ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment