This commit is contained in:
2026-05-01 14:09:42 +08:00
parent 357ac705c7
commit 28c084f608
4 changed files with 269 additions and 2 deletions

View File

@@ -189,7 +189,8 @@ func NewServiceContext(c config.Config) *ServiceContext {
applePayService := service.NewApplePayService(c)
tianyuanapiCallLogService := service.NewTianyuanapiCallLogService(tianyuanapiCallLogModel, featureModel)
whitelistService := service.NewWhitelistService(c, userFeatureWhitelistModel, whitelistOrderModel, whitelistOrderItemModel, queryModel, featureModel)
apiRequestService := service.NewApiRequestService(c, featureModel, productFeatureModel, userFeatureWhitelistModel, tianyuanapi, tianyuanapiCallLogService, whitelistService)
authorizationService := service.NewAuthorizationService(c, authorizationDocumentModel)
apiRequestService := service.NewApiRequestService(c, featureModel, productFeatureModel, userFeatureWhitelistModel, tianyuanapi, tianyuanapiCallLogService, whitelistService, authorizationService)
verificationService := service.NewVerificationService(c, tianyuanapi, apiRequestService)
asynqService := service.NewAsynqService(c)
agentService := service.NewAgentService(c, orderModel, agentModel, agentWalletModel,
@@ -199,7 +200,6 @@ func NewServiceContext(c config.Config) *ServiceContext {
userService := service.NewUserService(&c, userModel, userAuthModel, agentModel)
dictService := service.NewDictService(adminDictTypeModel, adminDictDataModel)
imageService := service.NewImageService()
authorizationService := service.NewAuthorizationService(c, authorizationDocumentModel)
// ============================== 异步任务服务 ==============================
asynqServer := asynq.NewServer(