🎨 Add Relation and Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9888

This commit is contained in:
Daniel 2023-12-23 17:17:47 +08:00
parent 62e92c0e6b
commit c916cd0c23
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 27 additions and 3 deletions

View file

@ -26,6 +26,22 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func getAttributeView(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
arg, _ := util.JsonArg(c, ret)
if nil == arg {
return
}
id := arg["id"].(string)
av := model.GetAttributeView(id)
ret.Data = map[string]interface{}{
"av": av,
}
}
func searchAttributeView(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)