diff --git a/services/game/client.go b/services/game/client.go index b662f25..337425a 100644 --- a/services/game/client.go +++ b/services/game/client.go @@ -82,3 +82,9 @@ func (c *Client) GetIsBlockOutIos(req *IsBlockOutIosReq) (resp *IsBlockOutIosRes err = c.DoAction(req, resp) return } + +func (c *Client) GetGameByVersion(req *GetGameByVersionReq) (resp *GetGameByVersionResp, err error) { + resp = CreateGetGameByVersionResp() + err = c.DoAction(req, resp) + return +} diff --git a/services/game/game.go b/services/game/game.go index 49c9011..2e77ecc 100644 --- a/services/game/game.go +++ b/services/game/game.go @@ -99,6 +99,8 @@ type GameInfoData struct { FlashAuthLogo string `json:"flash_auth_logo"` FlashAuthName string `json:"flash_auth_name"` FlashAuthStatus int `json:"flash_auth_status"` + FlashPassId string `json:"flash_pass_id"` + FlashPassKey string `json:"flash_pass_key"` GameByname string `json:"game_byname"` GameIconImg string `json:"game_icon_img"` GameSign string `json:"game_sign"` @@ -255,3 +257,35 @@ func CreateGetGameCompanyResp() *GetGameCompanyResp { BaseResponse: &responses.BaseResponse{}, } } + +// ==== 获取游戏客户端版本配置 + +type GetGameByVersionReq struct { + *requests.RpcRequest + GameId int `position:"Body" field:"game_id"` + GameVersion string `position:"Body" field:"game_version"` +} + +type GetGameByVersionResp struct { + *responses.BaseResponse + Code int `json:"code"` + Msg string `json:"msg"` + Data GameVersionInfo `json:"data"` +} + +func CreateGetGameByVersionReq(gameId int, gameVersion string) *GetGameByVersionReq { + req := &GetGameByVersionReq{ + RpcRequest: &requests.RpcRequest{}, + } + req.GameId = gameId + req.GameVersion = gameVersion + req.InitWithApiInfo(HOST, VERSION, "/api/game/getGameByVersion") + req.Method = requests.POST + return req +} + +func CreateGetGameByVersionResp() *GetGameByVersionResp { + return &GetGameByVersionResp{ + BaseResponse: &responses.BaseResponse{}, + } +}