mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🎨 Add a kernel internal api /api/av/getAttributeViewKeysByID
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
01ed3fe4c4
commit
cf3e9ca081
3 changed files with 33 additions and 3 deletions
|
|
@ -225,7 +225,24 @@ func getAttributeViewKeysByAvID(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
avID := arg["avID"].(string)
|
||||
ret.Data = model.GetAttributeViewKeysByAvID(avID)
|
||||
ret.Data = model.GetAttributeViewKeysByID(avID)
|
||||
}
|
||||
|
||||
func getAttributeViewKeysByID(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
arg, ok := util.JsonArg(c, ret)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
avID := arg["avID"].(string)
|
||||
keyIDsArg := arg["keyIDs"].([]interface{})
|
||||
var keyIDs []string
|
||||
for _, v := range keyIDsArg {
|
||||
keyIDs = append(keyIDs, v.(string
|
||||
}
|
||||
ret.Data = model.GetAttributeViewKeysByID(avID, keyIDs...)
|
||||
}
|
||||
|
||||
func getMirrorDatabaseBlocks(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue