🎨 Add a kernel internal api /api/av/getAttributeViewKeysByID

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-30 21:20:13 +08:00
parent 01ed3fe4c4
commit cf3e9ca081
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 33 additions and 3 deletions

View file

@ -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) {