diff --git a/services/game/client.go b/services/game/client.go index 337425a..b4fe1bf 100644 --- a/services/game/client.go +++ b/services/game/client.go @@ -83,7 +83,7 @@ func (c *Client) GetIsBlockOutIos(req *IsBlockOutIosReq) (resp *IsBlockOutIosRes return } -func (c *Client) GetGameByVersion(req *GetGameByVersionReq) (resp *GetGameByVersionResp, err error) { +func (c *Client) GetGameByVersion(req *GetGameVersionReq) (resp *GetGameVersionResp, err error) { resp = CreateGetGameByVersionResp() err = c.DoAction(req, resp) return diff --git a/services/game/game.go b/services/game/game.go index 2e77ecc..aa3be74 100644 --- a/services/game/game.go +++ b/services/game/game.go @@ -260,21 +260,21 @@ 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 CreateGetGameByVersionReq(gameId int, gameVersion string) *GetGameVersionReq { + req := &GetGameVersionReq{ RpcRequest: &requests.RpcRequest{}, } req.GameId = gameId @@ -284,8 +284,8 @@ func CreateGetGameByVersionReq(gameId int, gameVersion string) *GetGameByVersion return req } -func CreateGetGameByVersionResp() *GetGameByVersionResp { - return &GetGameByVersionResp{ +func CreateGetGameByVersionResp() *GetGameVersionResp { + return &GetGameVersionResp{ BaseResponse: &responses.BaseResponse{}, } }