mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 01:08:49 +01:00
🎨 Add kernel api getAttributeViewKeysByAvID
This commit is contained in:
parent
4624b62e4d
commit
7d87df9932
3 changed files with 8 additions and 17 deletions
|
|
@ -27,7 +27,7 @@ import (
|
|||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
func getAttributeViewSelectOptions(c *gin.Context) {
|
||||
func getAttributeViewKeysByAvID(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
|
|
@ -36,8 +36,7 @@ func getAttributeViewSelectOptions(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
avID := arg["avID"].(string)
|
||||
keyID := arg["keyID"].(string)
|
||||
ret.Data = model.GetAttributeViewSelectOptions(avID, keyID)
|
||||
ret.Data = model.GetAttributeViewKeysByAvID(avID)
|
||||
}
|
||||
|
||||
func getMirrorDatabaseBlocks(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue