feat: 百科知识库存入向量

This commit is contained in:
Blizzard
2026-04-21 17:32:26 +08:00
parent ae0020aa71
commit b2e6e511cd
21 changed files with 802 additions and 35 deletions
+1
View File
@@ -38,6 +38,7 @@ func MigrateTable() {
system.Menu{},
system.SysOperationRecord{},
system.Oss{},
system.SysAiConfig{},
plant.MyPlant{}, //我的植物
plant.CarePlan{}, //植物养护计划
+7 -5
View File
@@ -41,11 +41,12 @@ func Routers() {
{
//需要鉴权的路由
systemRouter.InitUserRouter(NeedAuthGroup) //用户相关
systemRouter.InitClientRouter(NeedAuthGroup) //客户端相关
systemRouter.InitRoleRouter(NeedAuthGroup) //角色相关
systemRouter.InitMenuRouter(NeedAuthGroup) //菜单相关
systemRouter.InitOssRouter(NeedAuthGroup) //OSS相关
systemRouter.InitUserRouter(NeedAuthGroup) //用户相关
systemRouter.InitClientRouter(NeedAuthGroup) //客户端相关
systemRouter.InitRoleRouter(NeedAuthGroup) //角色相关
systemRouter.InitMenuRouter(NeedAuthGroup) //菜单相关
systemRouter.InitOssRouter(NeedAuthGroup) //OSS相关
systemRouter.InitSysAiConfigRouter(NeedAuthGroup) //AI配置相关
}
{
@@ -60,6 +61,7 @@ func Routers() {
plantGroup.InitBadgeConfigRouter(NeedAuthGroup) //徽章配置
plantGroup.InitUserProfileRouter(NeedAuthGroup) //用户资料
plantGroup.InitExchangeRouter(NeedAuthGroup) //兑换中心
plantGroup.InitAiChatRouter(NeedAuthGroup) //AI聊天
}