This commit is contained in:
Liang Ding 2023-01-02 21:36:44 +08:00
parent 448fed5532
commit ad60a28278
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 22 additions and 0 deletions

View file

@ -31,6 +31,24 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func export2Liandi(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)
err := model.Export2Liandi(id)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
return
}
}
func exportDataInFolder(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)