feat(main): add agent

This commit is contained in:
2025-02-13 19:39:16 +08:00
parent 8242ccf11e
commit 761796bd35
44 changed files with 2258 additions and 2096 deletions

View File

@@ -24,6 +24,11 @@ type ServiceContext struct {
ProductRenderModel model.ProductRenderModel
OrderModel model.OrderModel
QueryModel model.QueryModel
AgentModel model.AgentModel
AgentAuditModel model.AgentAuditModel
AgentClosureModel model.AgentClosureModel
AgentCommissionModel model.AgentCommissionModel
AgentWalletModel model.AgentWalletModel
GlobalNotificationsModel model.GlobalNotificationsModel
AlipayService *service.AliPayService
WechatPayService *service.WechatPayService
@@ -78,6 +83,11 @@ func NewServiceContext(c config.Config) *ServiceContext {
OrderModel: model.NewOrderModel(db, c.CacheRedis),
QueryModel: model.NewQueryModel(db, c.CacheRedis),
GlobalNotificationsModel: model.NewGlobalNotificationsModel(db, c.CacheRedis),
AgentModel: model.NewAgentModel(db, c.CacheRedis),
AgentAuditModel: model.NewAgentAuditModel(db, c.CacheRedis),
AgentCommissionModel: model.NewAgentCommissionModel(db, c.CacheRedis),
AgentWalletModel: model.NewAgentWalletModel(db, c.CacheRedis),
AgentClosureModel: model.NewAgentClosureModel(db, c.CacheRedis),
FeatureModel: featureModel,
ProductFeatureModel: productFeatureModel,
}