128 lines
3.7 KiB
Markdown
128 lines
3.7 KiB
Markdown
# Project Map
|
|
|
|
用途:按子系统定位入口、边界和常用文件。这里写入口和边界,不替代源码。
|
|
|
|
## FD-Core
|
|
|
|
职责:核心业务后端,Spring Boot 2.7.18、MyBatis-Plus、Redis、RabbitMQ、Nacos 和对象存储编排。
|
|
|
|
关键入口:
|
|
|
|
- `FD-Core/src/main/java/com/xiaowang/fingertipdesigner/core/FingertipDesignerCoreApplication.java`
|
|
- `FD-Core/src/main/java/com/xiaowang/fingertipdesigner/core/modules`
|
|
- `FD-Core/src/main/java/com/xiaowang/fingertipdesigner/core/config`
|
|
- `FD-Core/src/main/resources/application.yaml`
|
|
- `FD-Core/src/main/resources/bootstrap.yaml`
|
|
|
|
边界:
|
|
|
|
- 新业务优先放入现有 `modules.<module>`。
|
|
- 外部系统连接器可以使用类封装,普通业务逻辑优先保持简单函数和服务方法。
|
|
- 后端 SQL 变更优先新增 `scripts/sql/migrations/` 下的中文版本脚本。
|
|
|
|
## FD-Gateway
|
|
|
|
职责:统一 API 入口,处理 `/api/**` 路由、管理端路由、白名单和 Token 初筛。
|
|
|
|
关键入口:
|
|
|
|
- `FD-Gateway/src/main/java/com/xiaowang/fingertipdesigner/gateway/FingertipDesignerGatewayApplication.java`
|
|
- `FD-Gateway/src/main/java/com/xiaowang/fingertipdesigner/gateway/filter/AuthGlobalFilter.java`
|
|
- `FD-Gateway/src/main/resources/bootstrap.yaml`
|
|
- Nacos `FingertipDesigner-Dev` / `gateway.yaml`
|
|
|
|
边界:
|
|
|
|
- 新增公开接口时,同步检查 Gateway 白名单、前端免登录路径和后端 Controller 路径。
|
|
- Gateway 不承载业务写逻辑。
|
|
|
|
## FD-Frontend
|
|
|
|
职责:Vue 3 Web 用户端和后台管理端。
|
|
|
|
关键入口:
|
|
|
|
- `FD-Frontend/src/main.ts`
|
|
- `FD-Frontend/src/router`
|
|
- `FD-Frontend/src/api`
|
|
- `FD-Frontend/src/views`
|
|
- `FD-Frontend/src/views/admin`
|
|
|
|
边界:
|
|
|
|
- 用户可见文案使用中文。
|
|
- 前后端 token 独立,避免互相清理登录态。
|
|
- 静态品牌名使用 `FingertipDesigner`。
|
|
|
|
## FD-WeChat-Fronted
|
|
|
|
职责:普通用户微信小程序,覆盖浏览、收藏、购物车、下单、订单、评价和个人中心链路。
|
|
|
|
关键入口:
|
|
|
|
- `FD-WeChat-Fronted/app.json`
|
|
- `FD-WeChat-Fronted/pages`
|
|
- `FD-WeChat-Fronted/api`
|
|
- `FD-WeChat-Fronted/utils`
|
|
|
|
边界:
|
|
|
|
- 匿名可浏览公开作品、店铺和详情。
|
|
- 收藏、加购、下单、评价等动作需要登录。
|
|
|
|
## FM-Wechat-Fronted
|
|
|
|
职责:指尖管理师小程序,覆盖移动工作台、规划、客户、员工、排班、请假和设置等管理场景。
|
|
|
|
关键入口:
|
|
|
|
- `FM-Wechat-Fronted/app.json`
|
|
- `FM-Wechat-Fronted/pages`
|
|
- `FM-Wechat-Fronted/api`
|
|
- `FM-Wechat-Fronted/utils`
|
|
- `FM-Wechat-Fronted/project.config.json`
|
|
|
|
边界:
|
|
|
|
- 生产管理端 API 基址走 `https://yunail.art/api/admin`。
|
|
- 本地开发配置通过 `utils/config.local.js`,该文件不进入 Git。
|
|
- 页面测试优先使用微信开发者工具自动化。
|
|
|
|
## scripts
|
|
|
|
职责:部署脚本、配置说明、初始化 SQL 和版本变更 SQL。
|
|
|
|
关键入口:
|
|
|
|
- `scripts/sql/init/FingertipDesigner.sql`
|
|
- `scripts/sql/migrations/统一项目命名为FingertipDesigner_20260623.sql`
|
|
- `scripts/sql/migrations/接回MinIO三副本对象存储_20260624.sql`
|
|
- `scripts/deploy-fingertip-designer-production.ps1`
|
|
- `scripts/package-release.ps1`
|
|
|
|
边界:
|
|
|
|
- 初始化 SQL 用于新库基线。
|
|
- 已部署环境使用 `scripts/sql/migrations/` 下的版本变更 SQL。
|
|
- 配置类变更需要在 `scripts/` 下补充说明文档。
|
|
|
|
## docx
|
|
|
|
职责:项目说明、设计、测试案例和交接资料。
|
|
|
|
关键入口:
|
|
|
|
- `docx/README.md`
|
|
- `docx/core-module-index.md`
|
|
- `docx/handoff/HANDOFF-BOOT.md`
|
|
- `docx/handoff/CURRENT-STATE.md`
|
|
- `docx/handoff/PROJECT-MAP.md`
|
|
- `docx/testing`
|
|
|
|
边界:
|
|
|
|
- `docx/handoff` 记录当前接手状态。
|
|
- `docx/design` 记录较稳定的设计资料。
|
|
- `docx/testing` 记录测试计划、报告和用例矩阵。
|
|
- 本地敏感服务器信息 Excel 不进入提交。
|