🎨 云端收集箱文档内添加刷新按钮 https://github.com/siyuan-note/siyuan/issues/6306

This commit is contained in:
Liang Ding 2022-10-22 19:52:58 +08:00
parent 23899f762c
commit 487cca891b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 51 additions and 0 deletions

View file

@ -48,6 +48,25 @@ func removeShorthands(c *gin.Context) {
}
}
func getShorthand(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
arg, ok := util.JsonArg(c, ret)
if !ok {
return
}
id := arg["id"].(string)
data, err := model.GetCloudShorthand(id)
if nil != err {
ret.Code = 1
ret.Msg = err.Error()
return
}
ret.Data = data
}
func getShorthands(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)