refactor: align framework cleanup with new bootstrap flow
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
15
internal/bootstrap/handlers.go
Normal file
15
internal/bootstrap/handlers.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package bootstrap
|
||||
|
||||
import (
|
||||
"github.com/break/junhong_cmp_fiber/internal/handler"
|
||||
)
|
||||
|
||||
// initHandlers 初始化所有 Handler 实例
|
||||
func initHandlers(svc *services) *Handlers {
|
||||
return &Handlers{
|
||||
Account: handler.NewAccountHandler(svc.Account),
|
||||
Role: handler.NewRoleHandler(svc.Role),
|
||||
Permission: handler.NewPermissionHandler(svc.Permission),
|
||||
// TODO: 新增 Handler 在此初始化
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user