🎨 Update av

This commit is contained in:
Daniel 2023-07-31 23:17:31 +08:00
parent 986a229fe2
commit 85d876e667
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 33 additions and 8 deletions

View file

@ -77,3 +77,21 @@ func getAttributeViewKeys(c *gin.Context) {
blockAttributeViewKeys := model.GetBlockAttributeViewKeys(id)
ret.Data = blockAttributeViewKeys
}
func setAttributeViewBlockAttrs(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)
keyID := arg["keyID"].(string)
rowID := arg["rowID"].(string)
cellID := arg["cellID"].(string)
value := arg["value"].(interface{})
blockAttributeViewKeys := model.UpdateAttributeViewCell(avID, keyID, rowID, cellID, value)
ret.Data = blockAttributeViewKeys
}