This commit is contained in:
Liang Ding 2023-05-11 09:03:45 +08:00
parent a52cf1eb29
commit 847be4b939
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 40 additions and 5 deletions

View file

@ -31,6 +31,23 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func exportODT(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)
name, zipPath := model.ExportPandocConvertZip(id, "odt", ".odt")
ret.Data = map[string]interface{}{
"name": name,
"zip": zipPath,
}
}
func exportMediaWiki(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)