mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: get tags from exist memos
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user