优化结构
This commit is contained in:
Generated
+4
-2
@@ -15,6 +15,7 @@ import (
|
||||
"kra/internal/data/payment"
|
||||
"kra/internal/data/repository"
|
||||
"kra/internal/initialize"
|
||||
"kra/internal/integration"
|
||||
"kra/internal/integration/cache"
|
||||
"kra/internal/integration/email"
|
||||
"kra/internal/integration/mq"
|
||||
@@ -147,14 +148,15 @@ func wireApp(confServer *conf.Server, runtime *conf.Runtime, logger *slog.Logger
|
||||
navigation := handler.NewNavigation(userService)
|
||||
session := handler.NewSession(tokenService)
|
||||
integrationConfigRepo := system.NewIntegrationConfigRepo(dataData)
|
||||
integrationConfigUsecase := biz.NewIntegrationConfigUsecase(integrationConfigRepo)
|
||||
store := data.NewIntegrationRuntime(dataData)
|
||||
connectivityTester := integration.NewConnectivityTester(store)
|
||||
integrationConfigUsecase := biz.NewIntegrationConfigUsecase(integrationConfigRepo, connectivityTester)
|
||||
integrationConfigService := service.NewIntegrationConfigService(integrationConfigUsecase)
|
||||
integrationConfig := handler.NewIntegrationConfig(integrationConfigService)
|
||||
v := handler.NewSet(authority, menu, api, permission, organization, announcement, handlerEmail, handlerPayment, task, media, audit, export, version, dictionary, parameter, apiToken, systemConfig, public, user, navigation, session, integrationConfig)
|
||||
routes := router.NewRoutes(v)
|
||||
taskMethods := worker.NewTaskMethods(taskUsecase, mediaUsecase, runtime)
|
||||
moduleRuntime := app.Runtime(routes, taskMethods, registry)
|
||||
store := data.NewIntegrationRuntime(dataData)
|
||||
websocketServer, cleanup2, err := websocket.New(store)
|
||||
if err != nil {
|
||||
cleanup()
|
||||
|
||||
Reference in New Issue
Block a user