优化结构
This commit is contained in:
@@ -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。
|
||||
|
||||
Reference in New Issue
Block a user