Game7 去掉上级邀请id限制

This commit is contained in:
lianghuanjie
2025-01-15 16:23:49 +08:00
parent c089a495c6
commit a0000fd343
4 changed files with 180 additions and 17 deletions

View File

@@ -44,6 +44,7 @@ type ServiceContext struct {
EmailRewardModel model.NhEmailRewardModel
AmbassadorModel model.NhTaskAmbassadorModel
GameReportModel model.NhGameReportModel
RoleModel model.NhRoleModel
ApiKeyCheck rest.Middleware
AdminSecretCheck rest.Middleware
@@ -82,6 +83,7 @@ func NewServiceContext(c config.Config) *ServiceContext {
EmailRewardModel: model.NewNhEmailRewardModel(dbConn),
AmbassadorModel: model.NewNhTaskAmbassadorModel(dbConn),
GameReportModel: model.NewNhGameReportModel(dbConn),
RoleModel: model.NewNhRoleModel(dbConn),
ApiKeyCheck: middleware.NewApiKeyCheckMiddleware(configModel).Handle,
AdminSecretCheck: middleware.NewAdminSecretCheckMiddleware(configModel).Handle,