feat: add support for content search (#1728)

* Change MemoFind.ContentSearch to slice

* Add support for content search

* Change for go-simple sugguest

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
This commit is contained in:
Athurg Gooth
2023-05-26 18:51:18 +08:00
committed by GitHub
parent 1282fe732e
commit 4ea5426e18
4 changed files with 25 additions and 10 deletions

View File

@@ -71,11 +71,10 @@ func (s *Server) registerTagRoutes(g *echo.Group) {
if !ok {
return echo.NewHTTPError(http.StatusBadRequest, "Missing user session")
}
contentSearch := "#"
normalRowStatus := store.Normal
memoFind := &store.FindMemoMessage{
CreatorID: &userID,
ContentSearch: &contentSearch,
ContentSearch: []string{"#"},
RowStatus: &normalRowStatus,
}