game7 api

This commit is contained in:
lianghuanjie
2025-01-10 16:20:58 +08:00
parent e9f237ee7c
commit 957537efc4
16 changed files with 359 additions and 24 deletions

View File

@@ -43,6 +43,7 @@ type ServiceContext struct {
ApiKeyCheck rest.Middleware
AdminSecretCheck rest.Middleware
Game7ApiKeyCheck rest.Middleware
Earn *ea.Client
DBConn sqlx.SqlConn
@@ -79,6 +80,7 @@ func NewServiceContext(c config.Config) *ServiceContext {
ApiKeyCheck: middleware.NewApiKeyCheckMiddleware(configModel).Handle,
AdminSecretCheck: middleware.NewAdminSecretCheckMiddleware(configModel).Handle,
Game7ApiKeyCheck: middleware.NewGame7ApiKeyCheckMiddleware(configModel).Handle,
Earn: c.Earn.BuildEarnClient(),
DBConn: dbConn,