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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *Client) GetGameByVersion(req *GetGameByVersionReq) (resp *GetGameByVersionResp, err error) {
 | 
			
		||||
	resp = CreateGetGameByVersionResp()
 | 
			
		||||
func (c *Client) GetGameVersion(req *GetGameVersionReq) (resp *GetGameVersionResp, err error) {
 | 
			
		||||
	resp = CreateGetGameVersionResp()
 | 
			
		||||
	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            int    `json:"download_id"`
 | 
			
		||||
	DownloadId            string `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 GetGameByVersionReq struct {
 | 
			
		||||
type GetGameVersionReq struct {
 | 
			
		||||
	*requests.RpcRequest
 | 
			
		||||
	GameId      int    `position:"Body" field:"game_id"`
 | 
			
		||||
	GameVersion string `position:"Body" field:"game_version"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type GetGameByVersionResp struct {
 | 
			
		||||
type GetGameVersionResp struct {
 | 
			
		||||
	*responses.BaseResponse
 | 
			
		||||
	Code int             `json:"code"`
 | 
			
		||||
	Msg  string          `json:"msg"`
 | 
			
		||||
	Data GameVersionInfo `json:"data"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func CreateGetGameByVersionReq(gameId int, gameVersion string) *GetGameByVersionReq {
 | 
			
		||||
	req := &GetGameByVersionReq{
 | 
			
		||||
func CreateGetGameVersionReq(gameId int, gameVersion string) *GetGameVersionReq {
 | 
			
		||||
	req := &GetGameVersionReq{
 | 
			
		||||
		RpcRequest: &requests.RpcRequest{},
 | 
			
		||||
	}
 | 
			
		||||
	req.GameId = gameId
 | 
			
		||||
	req.GameVersion = gameVersion
 | 
			
		||||
	req.InitWithApiInfo(HOST, VERSION, "/api/game/getGameByVersion")
 | 
			
		||||
	req.InitWithApiInfo(HOST, VERSION, "/api/game/getGameVersion")
 | 
			
		||||
	req.Method = requests.POST
 | 
			
		||||
	return req
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func CreateGetGameByVersionResp() *GetGameByVersionResp {
 | 
			
		||||
	return &GetGameByVersionResp{
 | 
			
		||||
func CreateGetGameVersionResp() *GetGameVersionResp {
 | 
			
		||||
	return &GetGameVersionResp{
 | 
			
		||||
		BaseResponse: &responses.BaseResponse{},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user