From d168951d34bfd95abf19bfd7a02fc70e6d70a266 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 31 Jul 2023 23:34:36 +0800 Subject: [PATCH] :art: Update av --- kernel/api/av.go | 2 +- kernel/api/router.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/api/av.go b/kernel/api/av.go index a4843cde6..09541abb7 100644 --- a/kernel/api/av.go +++ b/kernel/api/av.go @@ -78,7 +78,7 @@ func getAttributeViewKeys(c *gin.Context) { ret.Data = blockAttributeViewKeys } -func setAttributeViewBlockAttrs(c *gin.Context) { +func setAttributeViewBlockAttr(c *gin.Context) { ret := gulu.Ret.NewResult() defer c.JSON(http.StatusOK, ret) diff --git a/kernel/api/router.go b/kernel/api/router.go index 17f6e8a09..254da533d 100644 --- a/kernel/api/router.go +++ b/kernel/api/router.go @@ -360,7 +360,7 @@ func ServeAPI(ginServer *gin.Engine) { ginServer.Handle("POST", "/api/av/renderAttributeView", model.CheckAuth, renderAttributeView) ginServer.Handle("POST", "/api/av/getAttributeViewKeys", model.CheckAuth, getAttributeViewKeys) - ginServer.Handle("POST", "/api/av/setAttributeViewBlockAttrs", model.CheckAuth, setAttributeViewBlockAttrs) + ginServer.Handle("POST", "/api/av/setAttributeViewBlockAttr", model.CheckAuth, setAttributeViewBlockAttr) ginServer.Handle("POST", "/api/ai/chatGPT", model.CheckAuth, model.CheckReadonly, chatGPT) ginServer.Handle("POST", "/api/ai/chatGPTWithAction", model.CheckAuth, model.CheckReadonly, chatGPTWithAction)