This commit is contained in:
Daniel 2025-01-30 15:06:57 +08:00
parent 4d92d63ba1
commit 693bf7e1ed
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 30 additions and 0 deletions

View file

@ -202,6 +202,25 @@ func getDocImageAssets(c *gin.Context) {
ret.Data = assets
}
func getDocAssets(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)
assets, err := model.DocAssets(id)
if err != nil {
ret.Code = -1
ret.Msg = err.Error()
return
}
ret.Data = assets
}
func setFileAnnotation(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)