# Core Modules 用途:后端任务按业务归属定位代码。Core 当前结构是 `com.xiaowang.fingertipdesigner.core.modules.`。 ## 模块定位 | 模块 | 任务来了去哪 | | --- | --- | | `order` | 订单、订单项、购物车、报价、售后、改派、评价任务、订单状态机 | | `planning` | 指尖管理师规划聚合、预约占用、排班容量、店长手动预约 | | `file` | 文件上传、分片上传、MinIO、OSS 备份、签名 URL、图片回退 | | `artist` | 美甲师资料、可预约能力、排班设置、请假、店长参与制作 | | `shop` | 店铺资料、授权有效期、店铺绑定、店铺主题、联系方式 | | `product` | 作品、标签、效果图、作品公开展示、作品可预约美甲师 | | `auth` | 前台/后台登录、验证码、注册、Token 刷新、微信身份 | | `security` | 权限、角色、安全审计、后台作用域、权限策略 | | `message` | 系统消息、公告、用户消息状态、业务跳转消息 | | `marketing` | 优惠券、活动、收藏、点赞、VIP 档位、成长体系 | | `payment` | 支付单、退款单、余额、余额明细 | | `content` | 评论、评价内容管理 | | `inventory` | 耗材库存、库存记录、库存调整 | | `integration` | MessageHub、微信小程序接口、Outbox、地图服务 | | `analytics` | 后台工作台、经营看板、统计概览 | | `system` | 健康检查、系统参数、法律协议、默认密码支撑 | | `user` | 用户资料、用户资产、用户关系、邀请、协议确认 | ## 局部结构 模块内优先使用: ```text controller/admin controller/front dto entity mapper service service/impl support vo ``` 公共基础设施仍在根包: - `config` - `annotation` - `aspect` - `filter` - `utils` - `support.cache` - `support.id` - `support.security` - `common` ## Mapper 扫描 Mapper 扫描位于: ```text JC-ArtList-Core/src/main/java/com/xiaowang/fingertipdesigner/core/config/MyBatisPlusConfig.java ``` 新增模块或 mapper 包时,确认 `@MapperScan` 覆盖。 ## 当前高频链路 文件存储/OSS: - `modules/file/config/AliyunOssConfig.java` - `modules/file/service/impl/ObjectStorageFileServiceImpl.java` - `modules/file/service/impl/OssBackupServiceImpl.java` - `modules/file/support/ObjectStorageUrlSupport.java` - `modules/file/mq` - `modules/file/scheduler` - `config/RabbitMQConfig.java` 规划排班: - `modules/planning` - 关联 `modules/order`、`modules/artist`、`modules/shop` 订单状态: - `modules/order` - 重点查 `OrderStatus`、`OrderStateMachine`、订单服务实现和预约占用更新。 权限: - `modules/security` - 根包 `support.security` - 修改前确认当前店铺作用域和平台管理员规则。