mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🎨 笔记本支持导出 .sy.zip https://github.com/siyuan-note/siyuan/issues/5475
This commit is contained in:
parent
be2913c956
commit
06e970fb90
3 changed files with 39 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue