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