优化结构

This commit is contained in:
Yvan
2026-08-22 21:39:39 +08:00
parent 699bcceeea
commit 0126995090
17 changed files with 61 additions and 52 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ watching, and repository implementations.
- root files: shared database lifecycle, runtime clients, configuration
orchestration, data-scope auditing, and migration orchestration
新增数据模块时创建 `internal/data/<module>`,提供 `ProviderSet()` 和
新增数据模块时创建 `internal/data/<module>`,提供 `ProviderSet` 和
`Migrations()`,再在 `internal/modules/<module>/definition.go` 注册迁移与
管理面,最后在根 `data.ProviderSet` 中注册该模块。根 `data` 不应直接
拥有业务表 PO,也不应让一个模块引用另一个模块的私有 PO。