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:
@@ -19,6 +19,7 @@ import (
|
||||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/logger"
|
||||
|
||||
"github.com/break/junhong_cmp_fiber/internal/bootstrap"
|
||||
"github.com/break/junhong_cmp_fiber/internal/handler"
|
||||
"github.com/break/junhong_cmp_fiber/internal/model"
|
||||
"github.com/break/junhong_cmp_fiber/internal/routes"
|
||||
@@ -90,8 +91,8 @@ func setupPermTestEnv(t *testing.T) *permTestEnv {
|
||||
})
|
||||
|
||||
// 注册路由
|
||||
services := &routes.Services{
|
||||
PermissionHandler: permHandler,
|
||||
services := &bootstrap.Handlers{
|
||||
Permission: permHandler,
|
||||
}
|
||||
routes.RegisterRoutes(app, services)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user