feat: 迁移预警规则管理和历史分类查询

This commit is contained in:
Yvan
2026-11-03 20:19:26 +08:00
parent cd42a1d3f0
commit 7203c34409
31 changed files with 1264 additions and 15 deletions
+6 -1
View File
@@ -82,9 +82,13 @@ func wireApp(configServer *config.Server, store *config.Store, logger *slog.Logg
auditRecorderUsecase := system2.NewAuditRecorderUsecase(auditRecordRepo)
auditRecorder := system3.NewAuditRecorder(auditRecorderUsecase)
registry := taskRegistry()
businessPromoteRepo := business.NewBusinessPromoteRepo(dataData)
alertRuleRepo := business.NewAlertRuleRepo(dataData)
accountRepo := business.NewAccountRepo(dataData)
accountUsecase := business2.NewAccountUsecase(accountRepo)
alertRuleUsecase := business2.NewAlertRuleUsecase(alertRuleRepo, accountUsecase)
alertRuleService := business3.NewAlertRuleService(alertRuleUsecase)
alertRule := handler.NewAlertRule(alertRuleService)
businessPromoteRepo := business.NewBusinessPromoteRepo(dataData)
businessPromoteUsecase := business2.NewBusinessPromoteUsecase(businessPromoteRepo, accountUsecase)
businessPromoteService := business3.NewBusinessPromoteService(businessPromoteUsecase)
businessPromote := handler.NewBusinessPromote(businessPromoteService)
@@ -201,6 +205,7 @@ func wireApp(configServer *config.Server, store *config.Store, logger *slog.Logg
integrationConfigService := integration2.NewIntegrationConfigService(integrationConfigUsecase)
integrationConfig := handler.NewIntegrationConfig(integrationConfigService)
set := &handler.Set{
AlertRule: alertRule,
BusinessPromote: businessPromote,
Business: handlerBusiness,
BusinessPassword: businessPassword,