This commit is contained in:
2026-06-19 10:49:13 +08:00
parent 82f759586a
commit d71a23fa57
13 changed files with 696 additions and 39 deletions

View File

@@ -813,7 +813,15 @@ func NewContainer() *Container {
// API域应用服务
fx.Provide(
fx.Annotate(
api_app.NewQueryWhitelistApplicationService,
func(
repo domain_api_repo.QueryWhitelistRepository,
queryWhitelistSvc api_services.QueryWhitelistService,
apiUserService api_services.ApiUserAggregateService,
cfg *config.Config,
logger *zap.Logger,
) api_app.QueryWhitelistApplicationService {
return api_app.NewQueryWhitelistApplicationService(repo, queryWhitelistSvc, apiUserService, cfg, logger)
},
fx.As(new(api_app.QueryWhitelistApplicationService)),
),
// API应用服务 - 绑定到接口
@@ -1321,6 +1329,7 @@ func NewContainer() *Container {
// 管理员安全HTTP处理器
handlers.NewAdminSecurityHandler,
handlers.NewAdminQueryWhitelistHandler,
handlers.NewPublicQueryWhitelistHandler,
// 文章HTTP处理器
func(
appService article.ArticleApplicationService,
@@ -1416,6 +1425,7 @@ func NewContainer() *Container {
// 管理员安全路由
routes.NewAdminSecurityRoutes,
routes.NewAdminQueryWhitelistRoutes,
routes.NewPublicQueryWhitelistRoutes,
// PDFG路由
routes.NewPDFGRoutes,
// 企业报告页面路由
@@ -1537,6 +1547,7 @@ func RegisterRoutes(
statisticsRoutes *routes.StatisticsRoutes,
adminSecurityRoutes *routes.AdminSecurityRoutes,
adminQueryWhitelistRoutes *routes.AdminQueryWhitelistRoutes,
publicQueryWhitelistRoutes *routes.PublicQueryWhitelistRoutes,
pdfgRoutes *routes.PDFGRoutes,
qyglReportRoutes *routes.QYGLReportRoutes,
jwtAuth *middleware.JWTAuthMiddleware,
@@ -1566,6 +1577,7 @@ func RegisterRoutes(
statisticsRoutes.Register(router)
adminSecurityRoutes.Register(router)
adminQueryWhitelistRoutes.Register(router)
publicQueryWhitelistRoutes.Register(router)
pdfgRoutes.Register(router)
qyglReportRoutes.Register(router)