🧑‍💻 Add an internal kernel API /api/av/reloadAttributeView https://github.com/siyuan-note/siyuan/issues/14491

This commit is contained in:
Daniel 2025-04-01 11:47:56 +08:00
parent 2a839f9086
commit 96532915f7
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 14 additions and 0 deletions

View file

@ -27,6 +27,19 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func reloadAttributeView(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)
model.ReloadAttrView(id)
}
func duplicateAttributeViewBlock(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)