refactor: 移除 Redis/Rabbit 依赖,Agent Mongo 切至 ai_crm_angent_dev

This commit is contained in:
2026-10-22 00:02:46 +08:00
parent 8307ff95e4
commit 7685f280c6
25 changed files with 80 additions and 486 deletions
+4 -3
View File
@@ -18,7 +18,7 @@ deploy/ # 部署 TUI,流程见 deploy/MANUAL-DEPLOY.md
## 后端(apps/server)
- 构建 `./mvnw clean package -DskipTests`,运行 `./mvnw spring-boot:run`(默认 dev profile)
- 运行依赖环境变量:`DB_URL` / `DB_USERNAME` / `DB_PASSWORD` / `REDIS_HOST` / `REDIS_PASSWORD` / `JWT_SECRET`,见 README.md 与 `application-{profile}.yml`;MongoDB / RabbitMQ 连接见各 profile(与 MySQL 同机,账号 `qinghua`)
- 运行依赖:MySQL + `JWT_SECRET`(见 `application-{profile}.yml`);**已去掉 Redis / RabbitMQ / Server 侧 Mongo**
- 测试 `./mvnw test`,单个 `./mvnw test -Dtest=RoleAspectTest`
- 架构设计文档在 `docs/`(权限控制、开放接口、Agent/MCP 等),改动相关模块前先读
- `.vscode/settings.json` 已关闭 Eclipse null analysis(MyBatis-Plus 方法引用误报),不要补 `@SuppressWarnings("null")`
@@ -46,8 +46,9 @@ deploy/ # 部署 TUI,流程见 deploy/MANUAL-DEPLOY.md
- `cd apps/agent && python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt`
- 配置 `.env`(参考 `.env.example`):`JWT_SECRET` 须与 Java `jwt.secret` 一致
- 运行:`uvicorn api.main:app --reload --port 8200`
- 租户自管 OpenAI Compatible 凭证(Mongo 加密 + Redis 缓存);聊天/会话在 Agent Mongo 库
- MCP 电商工具(BI / catalog / pdd)已拆除;当前 MCP 面主要为 `mcp_ping`,待 CRM 工具再挂
- 租户自管 OpenAI Compatible 凭证(Key 在 Server MySQL);聊天/会话/记忆在 Agent Mongo(dev:`ai_crm_angent_dev`)
- LLM 运行时直拉 Server 内部 API(暂无 Redis 缓存)
- MCP 电商工具已拆除;当前主要为 `mcp_ping`,待 CRM 工具再挂
## 授权(apps/license-server)