Compare commits
No commits in common. "49c41fb60b9f6e552d90a98bdeb876a80f38ea0b" and "384d257e03d09213bed092e504f1b18ec3acff83" have entirely different histories.
49c41fb60b
...
384d257e03
@ -83,8 +83,8 @@ func (c *Client) GetIsBlockOutIos(req *IsBlockOutIosReq) (resp *IsBlockOutIosRes
|
||||
return
|
||||
}
|
||||
|
||||
func (c *Client) GetGameVersion(req *GetGameVersionReq) (resp *GetGameVersionResp, err error) {
|
||||
resp = CreateGetGameVersionResp()
|
||||
func (c *Client) GetGameByVersion(req *GetGameByVersionReq) (resp *GetGameByVersionResp, err error) {
|
||||
resp = CreateGetGameByVersionResp()
|
||||
err = c.DoAction(req, resp)
|
||||
return
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ type GameInfoData struct {
|
||||
Discount int `json:"discount"`
|
||||
Divide int `json:"divide"`
|
||||
DownloadDomain string `json:"download_domain"`
|
||||
DownloadId string `json:"download_id"`
|
||||
DownloadId int `json:"download_id"`
|
||||
ExchangeRate int `json:"exchange_rate"`
|
||||
ExtData string `json:"ext_data"`
|
||||
Fcmathod int `json:"fcmathod"`
|
||||
@ -210,7 +210,7 @@ func CreateGetGameSimpleListResp() *GetGameSimpleListResp {
|
||||
}
|
||||
|
||||
// GameCompany
|
||||
// ==== 获取根游戏信息
|
||||
// 获取根游戏记录
|
||||
type GameCompany struct {
|
||||
Id int `json:"id"`
|
||||
GameSign string `json:"game_sign"`
|
||||
@ -260,32 +260,32 @@ func CreateGetGameCompanyResp() *GetGameCompanyResp {
|
||||
|
||||
// ==== 获取游戏客户端版本配置
|
||||
|
||||
type GetGameVersionReq struct {
|
||||
type GetGameByVersionReq struct {
|
||||
*requests.RpcRequest
|
||||
GameId int `position:"Body" field:"game_id"`
|
||||
GameVersion string `position:"Body" field:"game_version"`
|
||||
}
|
||||
|
||||
type GetGameVersionResp struct {
|
||||
type GetGameByVersionResp struct {
|
||||
*responses.BaseResponse
|
||||
Code int `json:"code"`
|
||||
Msg string `json:"msg"`
|
||||
Data GameVersionInfo `json:"data"`
|
||||
}
|
||||
|
||||
func CreateGetGameVersionReq(gameId int, gameVersion string) *GetGameVersionReq {
|
||||
req := &GetGameVersionReq{
|
||||
func CreateGetGameByVersionReq(gameId int, gameVersion string) *GetGameByVersionReq {
|
||||
req := &GetGameByVersionReq{
|
||||
RpcRequest: &requests.RpcRequest{},
|
||||
}
|
||||
req.GameId = gameId
|
||||
req.GameVersion = gameVersion
|
||||
req.InitWithApiInfo(HOST, VERSION, "/api/game/getGameVersion")
|
||||
req.InitWithApiInfo(HOST, VERSION, "/api/game/getGameByVersion")
|
||||
req.Method = requests.POST
|
||||
return req
|
||||
}
|
||||
|
||||
func CreateGetGameVersionResp() *GetGameVersionResp {
|
||||
return &GetGameVersionResp{
|
||||
func CreateGetGameByVersionResp() *GetGameByVersionResp {
|
||||
return &GetGameByVersionResp{
|
||||
BaseResponse: &responses.BaseResponse{},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user