初始化

This commit is contained in:
2026-05-08 17:07:33 +08:00
commit 92839e2d67
187 changed files with 19265 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# 2026-05-06 工作日志
## 清理孤立实体类
- **任务**:对比 `docs/db_paopao.sql`38张表`entity/` 目录26个实体删除 SQL 中不存在的表对应的实体及其全套关联文件
- **删除了 21 个孤立实体**AppApiKey, AppArticleCategory, AppBuild, AppCloudCredential, AppConfig, AppContract, AppCredential, AppEvent, AppGitAccount, AppInviteToken, AppPermissionRequest, AppPipeline, AppRechargeCode, AppResource, AppSetting, AppSubscription, AppTicket, AppTicketReply, AppUserCache, AppVersion, ResourceAccessLevel
- **共删除 107 个文件**Entity(21) + Mapper(21) + Param(16) + Service接口(18) + ServiceImpl(22) + Controller(20) + 其他被牵连文件(9)
- **保留的 5 个有效实体**AppUser, AppArticle, AppNotification, AppProduct, AppRechargeRecord
- 被牵连删除的文件包括云存储Provider全家桶4个、UserController、WxLoginController、SyncMessageConsumer、WxMiniprogramUtil、UserCacheRefreshTask 等
## 重新组织目录结构:子模块合并到顶层
- **目标**:将 user/、product/、order/、finance/、marketing/、distribution/、activity/、cms/ 子模块全部合并到顶层统一按层entity/mapper/controller/param/service/service/impl组织
- **删除了 8 个子模块目录**user/、product/、order/、finance/、marketing/、distribution/、activity/、cms/
- **迁移了独有文件到顶层**(修正 package 和 import
- **Service 接口(4)**: AppMemberLevelService, AppUserAddressService, AppUserMemberOrderService, AppProductCategoryService, AppOrderService
- **Service 实现(5)**: AppMemberLevelServiceImpl, AppUserAddressServiceImpl, AppUserMemberOrderServiceImpl, AppUserServiceImpl, AppProductCategoryServiceImpl, AppOrderServiceImpl
- **Mapper(10)**: AppCartMapper, AppOrderMapper, AppOrderItemMapper, AppOrderRefundMapper, AppMemberLevelMapper, AppUserAddressMapper, AppUserMemberOrderMapper, AppProductBrandMapper, AppProductCategoryMapper, AppProductSkuMapper, AppProductSpecMapper, AppProductSpecValueMapper
- **Param(4)**: AppMemberLevelParam, AppUserAddressParam, AppUserMemberOrderParam, AppOrderParam
- **最终结构**纯扁平按层分entity/(38个) + mapper/ + param/ + controller/ + service/ + service/impl/
- 剩余 129 个 Java 文件,无子模块残留