This commit is contained in:
Liang Ding 2023-01-08 22:47:43 +08:00
parent dc4b5accfb
commit 88f716b5d6
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
7 changed files with 90 additions and 48 deletions

View file

@ -32,25 +32,6 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func reindexTree(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
arg, ok := util.JsonArg(c, ret)
if !ok {
return
}
path := arg["path"].(string)
err := model.ReindexTree(path)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
ret.Data = map[string]interface{}{"closeTimeout": 5000}
return
}
}
func refreshFiletree(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)