Files
app-java/.workbuddy/memory/2026-05-06.md
2026-05-08 17:07:33 +08:00

20 lines
2.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 文件,无子模块残留