增加智能体数据留存功能

This commit is contained in:
2026-08-27 00:24:26 +08:00
parent e297a4871f
commit 7078584a40
10 changed files with 3079 additions and 0 deletions
+9
View File
@@ -268,6 +268,15 @@ func Register() {
beego.Router("/platform/notebook/update/:id", &controllers.PlatformNotebookController{}, "post:Update")
beego.Router("/platform/notebook/delete/:id", &controllers.PlatformNotebookController{}, "delete:Delete")
// 智能体API管理(yz_platform_agent_api)
// 注意:固定路径需先于 /:id 通配路径注册,避免 list/test/batchDelete 被当作 ID 解析
beego.Router("/platform/agentApi/list", &controllers.PlatformAgentApiController{}, "get:List")
beego.Router("/platform/agentApi/test", &controllers.PlatformAgentApiController{}, "post:Test")
beego.Router("/platform/agentApi/batchDelete", &controllers.PlatformAgentApiController{}, "post:BatchDelete")
beego.Router("/platform/agentApi", &controllers.PlatformAgentApiController{}, "post:Create")
beego.Router("/platform/agentApi/:id/status", &controllers.PlatformAgentApiController{}, "post:ToggleStatus")
beego.Router("/platform/agentApi/:id", &controllers.PlatformAgentApiController{}, "get:Detail;put:Update;delete:Delete")
// 日程提醒管理
beego.Router("/platform/reminder/list", &controllers.PlatformReminderController{}, "get:GetReminderList")
beego.Router("/platform/reminder/test", &controllers.PlatformReminderController{}, "post:TestReminder")