Compare commits
No commits in common. "efaf155924ec7355f2bf580945aae499559f3fda" and "ef5d45383839ef71bc2c6891be17e16187297fc3" have entirely different histories.
efaf155924
...
ef5d453838
@ -83,14 +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)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *Client) GetGameCompanyBySign(req *GetGameCompanyBySignReq) (resp *GetGameCompanyBySignResp, err error) {
|
|
||||||
resp = CreateGetGameCompanyBySignResp()
|
|
||||||
err = c.DoAction(req, resp)
|
err = c.DoAction(req, resp)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -134,18 +134,3 @@ func TestIsBlockOutIos(t *testing.T) {
|
|||||||
}
|
}
|
||||||
t.Log(isBlockOutIos)
|
t.Log(isBlockOutIos)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGetGameCompanyBySign(t *testing.T) {
|
|
||||||
client, err := NewClient()
|
|
||||||
if err != nil {
|
|
||||||
t.Error(err)
|
|
||||||
}
|
|
||||||
gameCompanyBySignReq := CreateGetGameCompanyBySignReq()
|
|
||||||
gameCompanyBySignReq.GameSign = "tjqy"
|
|
||||||
gameCompanyBySign, err := client.GetGameCompanyBySign(gameCompanyBySignReq)
|
|
||||||
if err != nil {
|
|
||||||
t.Error(err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
t.Log(gameCompanyBySign)
|
|
||||||
}
|
|
||||||
|
@ -260,77 +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{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// === 获取根游戏信息
|
|
||||||
|
|
||||||
type GameSignInfo struct {
|
|
||||||
Id int `json:"id"`
|
|
||||||
GameSign string `json:"game_sign"`
|
|
||||||
GameName string `json:"game_name"`
|
|
||||||
ContractName string `json:"contract_name"`
|
|
||||||
PayKey string `json:"pay_key"`
|
|
||||||
LoginKey string `json:"login_key"`
|
|
||||||
Status int `json:"status"`
|
|
||||||
Company string `json:"company"`
|
|
||||||
System string `json:"system"`
|
|
||||||
Sync int `json:"sync"`
|
|
||||||
Type int `json:"type"`
|
|
||||||
GameProductID int `json:"game_product_id"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetGameCompanyBySignReq struct {
|
|
||||||
*requests.RpcRequest
|
|
||||||
GameSign string `position:"Body" field:"gameSign"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetGameCompanyBySignResp struct {
|
|
||||||
*responses.BaseResponse
|
|
||||||
Code int `json:"code"`
|
|
||||||
Msg string `json:"msg"`
|
|
||||||
Data GameSignInfo `json:"data"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func CreateGetGameCompanyBySignReq() *GetGameCompanyBySignReq {
|
|
||||||
req := &GetGameCompanyBySignReq{
|
|
||||||
RpcRequest: &requests.RpcRequest{},
|
|
||||||
}
|
|
||||||
req.InitWithApiInfo(HOST, VERSION, "/api/game/getGameCompanyBySign")
|
|
||||||
req.Method = requests.POST
|
|
||||||
return req
|
|
||||||
}
|
|
||||||
|
|
||||||
func CreateGetGameCompanyBySignResp() *GetGameCompanyBySignResp {
|
|
||||||
resp := &GetGameCompanyBySignResp{
|
|
||||||
BaseResponse: &responses.BaseResponse{},
|
|
||||||
}
|
|
||||||
return resp
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user