mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🔥 移除已经废弃的创建反链接口
This commit is contained in:
parent
ad99d1c678
commit
556fb1f2d4
2 changed files with 0 additions and 124 deletions
|
|
@ -145,30 +145,3 @@ func getBacklink(c *gin.Context) {
|
|||
}
|
||||
util.RandomSleep(200, 500)
|
||||
}
|
||||
|
||||
func createBacklink(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)
|
||||
refID := arg["refID"].(string)
|
||||
refText := arg["refText"].(string)
|
||||
isDynamic := arg["isDynamic"].(bool)
|
||||
refRootID, err := model.CreateBacklink(defID, refID, refText, isDynamic)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
return
|
||||
}
|
||||
ret.Data = map[string]interface{}{
|
||||
"defID": defID,
|
||||
"refID": refID,
|
||||
"refRootID": refRootID,
|
||||
"refText": refText,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue