change tow verifucation

This commit is contained in:
2025-04-26 13:09:34 +08:00
parent 7c590a206a
commit b60f6ffb3e
5 changed files with 127 additions and 54 deletions

View File

@@ -63,6 +63,8 @@ func NewServiceContext(c config.Config) *ServiceContext {
productFeatureModel := model.NewProductFeatureModel(db, c.CacheRedis)
featureModel := model.NewFeatureModel(db, c.CacheRedis)
userAuthModel := model.NewUserAuthModel(db, c.CacheRedis)
apiRequestService := service.NewApiRequestService(c, westDexService, yushanService, tianjuService, featureModel, productFeatureModel)
return &ServiceContext{
Config: c,
Redis: redis.MustNewRedis(redisConf),
@@ -73,9 +75,9 @@ func NewServiceContext(c config.Config) *ServiceContext {
WestDexService: westDexService,
YushanService: yushanService,
TianjuService: tianjuService,
VerificationService: service.NewVerificationService(c, westDexService),
VerificationService: service.NewVerificationService(c, westDexService, apiRequestService),
AsynqServer: asynqServer,
ApiRequestService: service.NewApiRequestService(c, westDexService, yushanService, tianjuService, featureModel, productFeatureModel),
ApiRequestService: apiRequestService,
AsynqService: service.NewAsynqService(c),
UserModel: model.NewUserModel(db, c.CacheRedis),
UserAuthModel: userAuthModel,