mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
66f27afcc2
commit
fd01ab84e2
2 changed files with 18 additions and 0 deletions
|
|
@ -38,6 +38,23 @@ func refreshBacklink(c *gin.Context) {
|
|||
model.RefreshBacklink(id)
|
||||
}
|
||||
|
||||
func getBackmentionDoc(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
arg, ok := util.JsonArg(c, ret)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
defID := arg["defID"].(string)
|
||||
keyword := ""
|
||||
backlinks := model.GetBackmentionDoc(defID, keyword)
|
||||
ret.Data = map[string]interface{}{
|
||||
"backmentions": backlinks,
|
||||
}
|
||||
}
|
||||
|
||||
func getBacklinkDoc(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue