This commit is contained in:
2025-12-09 18:55:28 +08:00
parent 8d00d67540
commit c23ab8338b
209 changed files with 5445 additions and 3963 deletions

View File

@@ -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,