mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 The database rollup field supports using the relation field https://github.com/siyuan-note/siyuan/issues/15851
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
9b62385e86
commit
07cfc58642
5 changed files with 112 additions and 68 deletions
|
|
@ -567,6 +567,24 @@ func searchAttributeViewNonRelationKey(c *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
func searchAttributeViewRollupDestKeys(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
arg, _ := util.JsonArg(c, ret)
|
||||
if nil == arg {
|
||||
return
|
||||
}
|
||||
|
||||
avID := arg["avID"].(string)
|
||||
keyword := arg["keyword"].(string)
|
||||
|
||||
rollupDestKeys := model.SearchAttributeViewRollupDestKeys(avID, keyword)
|
||||
ret.Data = map[string]interface{}{
|
||||
"keys": rollupDestKeys,
|
||||
}
|
||||
}
|
||||
|
||||
func searchAttributeViewRelationKey(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue