优化结构

This commit is contained in:
Yvan
2026-08-22 12:13:16 +08:00
parent d987244d0e
commit b27a66e9d3
200 changed files with 1794 additions and 1715 deletions
+5 -2
View File
@@ -18,7 +18,9 @@
## system 内部保留边界
- `app`:组合根,绑定 system 的迁移、菜单、路由和任务贡献。
- `app`:组合根,汇总各模块的迁移、菜单、路由和任务贡献。
- `modules/system`:system 模块的 Definition,声明迁移、管理面和默认任务。
- `modules/payment`:payment 模块的 Definition,声明支付迁移和支付管理面。
- `biz`:用户、权限、菜单、审计、任务、支付订单和系统配置等领域模型与用例。
- `conf`:system 配置 proto、运行时快照和生成代码。
- `data`:数据库连接、PO、仓储、system 表、支付持久化和配置 watcher。
@@ -36,7 +38,8 @@
```text
internal/
app/ # 组合根和模块定义
app/ # 组合根和 catalog
modules/ # 业务模块定义及其模块级贡献
biz/ # DO、usecase、repo interface
conf/ # 配置 proto/runtime
data/ # PO、repo、数据库和迁移