chore: add chrome extension codes

This commit is contained in:
Steven
2022-09-13 22:34:13 +08:00
parent dfc797fe58
commit 48fb6018c0
6 changed files with 107 additions and 1 deletions

View File

@ -71,6 +71,12 @@ func (s *Server) registerShortcutRoutes(g *echo.Group) {
if workspaceID, err := strconv.Atoi(c.QueryParam("workspaceId")); err == nil {
shortcutFind.WorkspaceID = &workspaceID
}
if name := c.QueryParam("name"); name != "" {
shortcutFind.Name = &name
}
if link := c.QueryParam("link"); link != "" {
shortcutFind.Link = &link
}
list, err := s.Store.FindShortcutList(ctx, shortcutFind)
if err != nil {