mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 反链面板支持关键字过滤 https://github.com/siyuan-note/siyuan/issues/6178
This commit is contained in:
parent
454353d06f
commit
bec79ce100
8 changed files with 26 additions and 20 deletions
|
|
@ -50,7 +50,7 @@ func getBackmentionDoc(c *gin.Context) {
|
|||
|
||||
defID := arg["defID"].(string)
|
||||
refTreeID := arg["refTreeID"].(string)
|
||||
keyword := ""
|
||||
keyword := arg["keyword"].(string)
|
||||
backlinks := model.GetBackmentionDoc(defID, refTreeID, keyword)
|
||||
ret.Data = map[string]interface{}{
|
||||
"backmentions": backlinks,
|
||||
|
|
@ -68,7 +68,8 @@ func getBacklinkDoc(c *gin.Context) {
|
|||
|
||||
defID := arg["defID"].(string)
|
||||
refTreeID := arg["refTreeID"].(string)
|
||||
backlinks := model.GetBacklinkDoc(defID, refTreeID)
|
||||
keyword := arg["keyword"].(string)
|
||||
backlinks := model.GetBacklinkDoc(defID, refTreeID, keyword)
|
||||
ret.Data = map[string]interface{}{
|
||||
"backlinks": backlinks,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue