This commit is contained in:
2025-06-24 15:46:41 +08:00
parent 3833f67b03
commit be63c01987
22 changed files with 1509 additions and 34 deletions

View File

@@ -60,6 +60,8 @@ type ServiceContext struct {
AgentPlatformDeductionModel model.AgentPlatformDeductionModel
AgentActiveStatModel model.AgentActiveStatModel
AgentWithdrawalModel model.AgentWithdrawalModel
AgentWithdrawalTaxModel model.AgentWithdrawalTaxModel
AgentWithdrawalTaxExemptionModel model.AgentWithdrawalTaxExemptionModel
AgentRealNameModel model.AgentRealNameModel
// 管理后台相关模型
@@ -174,6 +176,8 @@ type agentModels struct {
AgentPlatformDeductionModel model.AgentPlatformDeductionModel
AgentActiveStatModel model.AgentActiveStatModel
AgentWithdrawalModel model.AgentWithdrawalModel
AgentWithdrawalTaxModel model.AgentWithdrawalTaxModel
AgentWithdrawalTaxExemptionModel model.AgentWithdrawalTaxExemptionModel
AgentRealNameModel model.AgentRealNameModel
}
@@ -195,6 +199,8 @@ func initAgentModels(db sqlx.SqlConn, redis cache.CacheConf) agentModels {
AgentPlatformDeductionModel: model.NewAgentPlatformDeductionModel(db, redis),
AgentActiveStatModel: model.NewAgentActiveStatModel(db, redis),
AgentWithdrawalModel: model.NewAgentWithdrawalModel(db, redis),
AgentWithdrawalTaxModel: model.NewAgentWithdrawalTaxModel(db, redis),
AgentWithdrawalTaxExemptionModel: model.NewAgentWithdrawalTaxExemptionModel(db, redis),
AgentRealNameModel: model.NewAgentRealNameModel(db, redis),
}
}
@@ -403,6 +409,8 @@ func NewServiceContext(c config.Config) *ServiceContext {
AgentPlatformDeductionModel: agentModels.AgentPlatformDeductionModel,
AgentActiveStatModel: agentModels.AgentActiveStatModel,
AgentWithdrawalModel: agentModels.AgentWithdrawalModel,
AgentWithdrawalTaxModel: agentModels.AgentWithdrawalTaxModel,
AgentWithdrawalTaxExemptionModel: agentModels.AgentWithdrawalTaxExemptionModel,
AgentRealNameModel: agentModels.AgentRealNameModel,
// 管理后台相关模型