This commit is contained in:
Liang Ding 2022-11-17 22:39:22 +08:00
parent 454353d06f
commit bec79ce100
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
8 changed files with 26 additions and 20 deletions

View file

@ -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,
}