v1.1
This commit is contained in:
@@ -28,7 +28,6 @@ type ServiceContext struct {
|
||||
// 用户相关模型
|
||||
UserModel model.UserModel
|
||||
UserAuthModel model.UserAuthModel
|
||||
UserTempModel model.UserTempModel
|
||||
|
||||
// 产品相关模型
|
||||
ProductModel model.ProductModel
|
||||
@@ -110,7 +109,6 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
// ============================== 用户相关模型 ==============================
|
||||
userModel := model.NewUserModel(db, cacheConf)
|
||||
userAuthModel := model.NewUserAuthModel(db, cacheConf)
|
||||
userTempModel := model.NewUserTempModel(db, cacheConf)
|
||||
|
||||
// ============================== 产品相关模型 ==============================
|
||||
productModel := model.NewProductModel(db, cacheConf)
|
||||
@@ -181,7 +179,7 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
agentRelationModel, agentLinkModel, agentOrderModel, agentCommissionModel, agentRebateModel,
|
||||
agentUpgradeModel, agentWithdrawalModel, agentConfigModel, agentProductConfigModel,
|
||||
agentRealNameModel, agentWithdrawalTaxModel, agentFreezeTaskModel)
|
||||
userService := service.NewUserService(&c, userModel, userAuthModel, userTempModel, agentModel)
|
||||
userService := service.NewUserService(&c, userModel, userAuthModel, agentModel)
|
||||
dictService := service.NewDictService(adminDictTypeModel, adminDictDataModel)
|
||||
imageService := service.NewImageService()
|
||||
authorizationService := service.NewAuthorizationService(c, authorizationDocumentModel)
|
||||
@@ -210,7 +208,6 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
// 用户相关模型
|
||||
UserModel: userModel,
|
||||
UserAuthModel: userAuthModel,
|
||||
UserTempModel: userTempModel,
|
||||
|
||||
// 产品相关模型
|
||||
ProductModel: productModel,
|
||||
|
||||
Reference in New Issue
Block a user