feat(app): 引入 uber-go/fx 重构 DI 装配层
This commit is contained in:
8
internal/app/handler_module.go
Normal file
8
internal/app/handler_module.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package app
|
||||
|
||||
// HandlerModule 已在阶段4移除。
|
||||
//
|
||||
// 当前阶段,Handler 仍由 internal/container.Container + handler.RegisterRoutesWithDI
|
||||
// 构造与注册(见 container_module.go 的 registerRoutes)。
|
||||
//
|
||||
// TODO(阶段6): Handler 将改为直接依赖各 Service 接口,由 fx 直接 Provide 与注册。
|
||||
Reference in New Issue
Block a user