增加ai配置和ai广场功能

This commit is contained in:
hero920103 committed 2026-11-09 16:44:11 +08:00
1 parent 244b4bd9fd
commit d9a50e23dd
27 files changed
+3808 -57

No files matched your search

+15
View File
@@ -407,6 +407,21 @@ func Register() {
beego.Router("/platform/loginBrand", &controllers.PlatformWebsiteSettingController{}, "get:LoginBrandInfo")
beego.Router("/platform/saveLoginBrand", &controllers.PlatformWebsiteSettingController{}, "post:SaveLoginBrand")
// ===== 平台 AI 管理(docs/sql/create_platform_ai_provider.sql)=====
// 注意:/provider/test、/provider/list 等固定路径先于 /provider/:id 注册
beego.Router("/platform/ai/provider/list", &controllers.PlatformAiController{}, "get:List")
beego.Router("/platform/ai/provider", &controllers.PlatformAiController{}, "post:Create")
beego.Router("/platform/ai/provider/test", &controllers.PlatformAiController{}, "post:Test")
beego.Router("/platform/ai/provider/:id", &controllers.PlatformAiController{}, "put:Update;delete:Delete")
beego.Router("/platform/ai/chat", &controllers.PlatformAiController{}, "post:Chat")
beego.Router("/platform/ai/chat/stream", &controllers.PlatformAiController{}, "post:ChatStream")
beego.Router("/platform/ai/chat/sessions", &controllers.PlatformAiController{}, "get:ListChatSessions")
beego.Router("/platform/ai/chat/session", &controllers.PlatformAiController{}, "post:CreateChatSession")
beego.Router("/platform/ai/chat/session/:id/messages", &controllers.PlatformAiController{}, "get:GetChatSessionMessages")
beego.Router("/platform/ai/chat/session/:id", &controllers.PlatformAiController{}, "delete:DeleteChatSession;put:UpdateChatSession")
beego.Router("/platform/ai/ocrConfig", &controllers.PlatformAiController{}, "get:OcrConfig;post:SaveOcrConfig")
beego.Router("/platform/ai/ocr/recognize", &controllers.PlatformAiController{}, "post:RecognizeOcr")
// 平台端排班模板(全局模板;系统预置只读,只有平台可维护)
// 注意:带 /status 的固定路径先于 /:id 注册
beego.Router("/platform/schedTemplates", &controllers.PlatformSchedTemplateController{}, "get:List;post:Create")