Compare commits
12 Commits
384d257e03
...
49c41fb60b
Author | SHA1 | Date | |
---|---|---|---|
|
49c41fb60b | ||
45e449df11 | |||
90cc6c3719 | |||
|
b0027fd6e3 | ||
|
0b9b6ec0d9 | ||
e4b852e4a6 | |||
efaf155924 | |||
|
ef5d453838 | ||
6d3f8d8232 | |||
089a9091ec | |||
ba79540f78 | |||
7e9eae718c |
@ -83,8 +83,8 @@ func (c *Client) GetIsBlockOutIos(req *IsBlockOutIosReq) (resp *IsBlockOutIosRes
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) GetGameByVersion(req *GetGameByVersionReq) (resp *GetGameByVersionResp, err error) {
|
func (c *Client) GetGameVersion(req *GetGameVersionReq) (resp *GetGameVersionResp, err error) {
|
||||||
resp = CreateGetGameByVersionResp()
|
resp = CreateGetGameVersionResp()
|
||||||
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 int `json:"download_id"`
|
DownloadId string `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 GetGameByVersionReq struct {
|
type GetGameVersionReq 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 GetGameByVersionResp struct {
|
type GetGameVersionResp 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 CreateGetGameByVersionReq(gameId int, gameVersion string) *GetGameByVersionReq {
|
func CreateGetGameVersionReq(gameId int, gameVersion string) *GetGameVersionReq {
|
||||||
req := &GetGameByVersionReq{
|
req := &GetGameVersionReq{
|
||||||
RpcRequest: &requests.RpcRequest{},
|
RpcRequest: &requests.RpcRequest{},
|
||||||
}
|
}
|
||||||
req.GameId = gameId
|
req.GameId = gameId
|
||||||
req.GameVersion = gameVersion
|
req.GameVersion = gameVersion
|
||||||
req.InitWithApiInfo(HOST, VERSION, "/api/game/getGameByVersion")
|
req.InitWithApiInfo(HOST, VERSION, "/api/game/getGameVersion")
|
||||||
req.Method = requests.POST
|
req.Method = requests.POST
|
||||||
return req
|
return req
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateGetGameByVersionResp() *GetGameByVersionResp {
|
func CreateGetGameVersionResp() *GetGameVersionResp {
|
||||||
return &GetGameByVersionResp{
|
return &GetGameVersionResp{
|
||||||
BaseResponse: &responses.BaseResponse{},
|
BaseResponse: &responses.BaseResponse{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user