mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
♻️ Adjust template and widget search data structure (#17142)
This commit is contained in:
parent
87bd6267b7
commit
10dfb0855f
4 changed files with 35 additions and 23 deletions
|
|
@ -188,10 +188,10 @@ func searchWidget(c *gin.Context) {
|
|||
}
|
||||
|
||||
keyword := arg["k"].(string)
|
||||
blocks := model.SearchWidget(keyword)
|
||||
widgets := model.SearchWidget(keyword)
|
||||
ret.Data = map[string]interface{}{
|
||||
"blocks": blocks,
|
||||
"k": keyword,
|
||||
"widgets": widgets,
|
||||
"k": keyword,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -223,10 +223,10 @@ func searchTemplate(c *gin.Context) {
|
|||
}
|
||||
|
||||
keyword := arg["k"].(string)
|
||||
blocks := model.SearchTemplate(keyword)
|
||||
templates := model.SearchTemplate(keyword)
|
||||
ret.Data = map[string]interface{}{
|
||||
"blocks": blocks,
|
||||
"k": keyword,
|
||||
"templates": templates,
|
||||
"k": keyword,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue