kgen 平台接口

This commit is contained in:
lianghuanjie
2025-01-13 19:48:14 +08:00
parent 2b9a1acce2
commit d592615908
9 changed files with 322 additions and 0 deletions

View File

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