f
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package svc
|
||||
|
||||
import (
|
||||
"time"
|
||||
"bdrp-server/app/main/api/internal/config"
|
||||
"bdrp-server/app/main/api/internal/middleware"
|
||||
"bdrp-server/app/main/api/internal/service"
|
||||
tianyuanapi "bdrp-server/app/main/api/internal/service/tianyuanapi_sdk"
|
||||
"bdrp-server/app/main/model"
|
||||
"time"
|
||||
|
||||
"github.com/hibiken/asynq"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -79,7 +79,6 @@ type ServiceContext struct {
|
||||
AdminPromotionLinkModel model.AdminPromotionLinkModel
|
||||
AdminPromotionLinkStatsTotalModel model.AdminPromotionLinkStatsTotalModel
|
||||
AdminPromotionLinkStatsHistoryModel model.AdminPromotionLinkStatsHistoryModel
|
||||
AdminPromotionOrderModel model.AdminPromotionOrderModel
|
||||
|
||||
// 其他模型
|
||||
ExampleModel model.ExampleModel
|
||||
@@ -169,7 +168,6 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
adminPromotionLinkModel := model.NewAdminPromotionLinkModel(db, cacheConf)
|
||||
adminPromotionLinkStatsTotalModel := model.NewAdminPromotionLinkStatsTotalModel(db, cacheConf)
|
||||
adminPromotionLinkStatsHistoryModel := model.NewAdminPromotionLinkStatsHistoryModel(db, cacheConf)
|
||||
adminPromotionOrderModel := model.NewAdminPromotionOrderModel(db, cacheConf)
|
||||
|
||||
// ============================== 其他模型 ==============================
|
||||
exampleModel := model.NewExampleModel(db, cacheConf)
|
||||
@@ -189,7 +187,7 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
|
||||
// ============================== 业务服务初始化 ==============================
|
||||
alipayService := service.NewAliPayService(c)
|
||||
wechatPayService := service.NewWechatPayService(c, userAuthModel, service.InitTypeWxPayPubKey)
|
||||
wechatPayService := service.NewWechatPayService(c, userAuthModel, service.InitTypePlatformCert)
|
||||
applePayService := service.NewApplePayService(c)
|
||||
apiRequestService := service.NewApiRequestService(c, featureModel, productFeatureModel, tianyuanapi)
|
||||
verificationService := service.NewVerificationService(c, tianyuanapi, apiRequestService)
|
||||
@@ -281,7 +279,6 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
AdminPromotionLinkModel: adminPromotionLinkModel,
|
||||
AdminPromotionLinkStatsTotalModel: adminPromotionLinkStatsTotalModel,
|
||||
AdminPromotionLinkStatsHistoryModel: adminPromotionLinkStatsHistoryModel,
|
||||
AdminPromotionOrderModel: adminPromotionOrderModel,
|
||||
|
||||
// 其他模型
|
||||
ExampleModel: exampleModel,
|
||||
|
||||
Reference in New Issue
Block a user