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:
2025-11-19 12:47:25 +08:00
parent 39d14ec093
commit d66323487b
67 changed files with 3020 additions and 3992 deletions

View File

@@ -21,6 +21,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"
@@ -116,8 +117,8 @@ func setupTestEnv(t *testing.T) *testEnv {
})
// 注册路由
services := &routes.Services{
AccountHandler: accountHandler,
services := &bootstrap.Handlers{
Account: accountHandler,
}
routes.RegisterRoutes(app, services)