mirror of
https://gitee.com/qqtt-ah/ai-crm.git
synced 2026-11-25 11:09:20 +08:00
refactor: 移除电商BI与渠道模块,保留智能体与系统基础能力
This commit is contained in:
@@ -1,30 +1,31 @@
|
||||
# AGENTS.md
|
||||
|
||||
电商 DMB / ECBI 系统。根目录**不是统一工作区**:各 app 各自构建、各自装依赖,根目录无 package.json。提交走 git(分支 `dev`),commit message 用中文 conventional 格式(`feat:`/`fix:`/`refactor:`/`sql:` 前缀)。
|
||||
AI CRM 系统(由电商 DMB / ECBI 瘦身演进)。根目录**不是统一工作区**:各 app 各自构建、各自装依赖,根目录无 package.json。提交走 git(分支 `dev`),commit message 用中文 conventional 格式(`feat:`/`fix:`/`refactor:`/`sql:` 前缀)。
|
||||
|
||||
## 目录一览
|
||||
|
||||
```
|
||||
apps/
|
||||
web/ # 前端(原 ecom-dmb-frontend,pnpm+turbo,应用 apps/web-antd)
|
||||
server/ # 主后端(原 ecom-dmb-backend,Spring Boot)
|
||||
web/ # 前端(pnpm+turbo,应用 apps/web-antd)
|
||||
server/ # 主后端(Spring Boot:sys/org/sub/open/notify/agent)
|
||||
agent/ # 智能助手(FastAPI/LangGraph;会话 Mongo;模型 Key 落 Server MySQL)
|
||||
license-server/ # 授权(原 ecom-license:server/ + tui/)
|
||||
browser-extension/ # 浏览器扩展
|
||||
order-generator/ # 刷单/删单测试工具
|
||||
deploy/ # 部署 TUI(原 ecom-deploy),流程见 deploy/MANUAL-DEPLOY.md
|
||||
license-server/ # 授权(server/ + tui/)
|
||||
deploy/ # 部署 TUI,流程见 deploy/MANUAL-DEPLOY.md
|
||||
```
|
||||
|
||||
> 已移除:电商 BI / 渠道(拼多多等)/ 商品订单主数据、浏览器扩展、刷单工具。CRM 业务域待后续新增。
|
||||
|
||||
## 后端(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`)
|
||||
- **拼多多 POP SDK 来自本地文件仓库 `libs/repo`(pom.xml 的 project-local repository,未入库)**:不要删除或清理;全新 clone 缺少它无法编译,需从别处恢复
|
||||
- 测试 `./mvnw test`,单个 `./mvnw test -Dtest=RoleAspectTest`
|
||||
- 架构设计文档在 `docs/`(订单统计读模型、权限控制、时间格式等),改动相关模块前先读
|
||||
- 架构设计文档在 `docs/`(权限控制、开放接口、Agent/MCP 等),改动相关模块前先读
|
||||
- `.vscode/settings.json` 已关闭 Eclipse null analysis(MyBatis-Plus 方法引用误报),不要补 `@SuppressWarnings("null")`
|
||||
- 接口文档:启动后 http://localhost:8080/doc.html(knife4j)
|
||||
- Spring profile:dev / test / pre / prod;部署环境端口 8101 / 8102 / 8103(见 deploy/MANUAL-DEPLOY.md)
|
||||
- **保留模块**:`sys` / `org` / `sub` / `open`(API Key 框架)/ `notify` / `agent`(LLM 配置 + MCP 框架)
|
||||
- 菜单清理:见 `sql/migration/V20261021c__disable_ecommerce_menus.sql`(对已有库执行)
|
||||
|
||||
## 前端(apps/web)
|
||||
|
||||
@@ -36,6 +37,7 @@ deploy/ # 部署 TUI(原 ecom-deploy),流程见 deploy/MANU
|
||||
- **web-antd 视图里不要用 `<Spin :spinning>` 整块包住可滚动列表**(ant-spin-container 破坏滚动链);滚动依赖 `flex-1 min-h-0 overflow-y-auto`,加载态拆细(详见 `.cursor/rules/antd-spin-scrollable-layout.mdc`)
|
||||
- 智能助手页:`views/agent/chat`;开发代理 `/api/agent` → `localhost:8200`(见 `vite.config.mts`)
|
||||
- 当前应用版本:`@vben/web-antd` **5.7.0**
|
||||
- **保留视图域**:`agent` / `sys` / `org` / `company` / `open` / `_core` / `common`
|
||||
|
||||
## Agent(apps/agent)
|
||||
|
||||
@@ -44,6 +46,7 @@ deploy/ # 部署 TUI(原 ecom-deploy),流程见 deploy/MANU
|
||||
- 配置 `.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 工具再挂
|
||||
|
||||
## 授权(apps/license-server)
|
||||
|
||||
@@ -59,11 +62,6 @@ deploy/ # 部署 TUI(原 ecom-deploy),流程见 deploy/MANU
|
||||
- 编译产物统一放 `artifacts/`(已 gitignore):`backend/app.jar`、`frontend/` dist、`license/` 整目录
|
||||
- 源码路径约定:`apps/web`、`apps/server`、`apps/license-server`
|
||||
|
||||
## 浏览器扩展(apps/browser-extension)
|
||||
|
||||
- `pnpm build` 会把 features / zip 同步到 `apps/server/src/main/resources/static/extension-features` 与 `static/extension`
|
||||
|
||||
## 其他
|
||||
|
||||
- `apps/order-generator`:`npm start`(交互式),直接 `node main.js` 也可
|
||||
- `.opencode/opencode.json` 配置了 jdtls LSP,指向本机 cursor-server 扩展路径(机器相关,未入库)
|
||||
|
||||
Reference in New Issue
Block a user