This commit is contained in:
Liang Ding 2022-07-24 22:05:14 +08:00
parent be2913c956
commit 06e970fb90
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 39 additions and 0 deletions

View file

@ -90,6 +90,22 @@ func exportMd(c *gin.Context) {
}
}
func exportNotebookSY(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)
zipPath := model.ExportNotebookSY(id)
ret.Data = map[string]interface{}{
"zip": zipPath,
}
}
func exportSY(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)