diff --git a/services/game/client.go b/services/game/client.go index b4fe1bf..b61f964 100644 --- a/services/game/client.go +++ b/services/game/client.go @@ -83,8 +83,8 @@ func (c *Client) GetIsBlockOutIos(req *IsBlockOutIosReq) (resp *IsBlockOutIosRes return } -func (c *Client) GetGameByVersion(req *GetGameVersionReq) (resp *GetGameVersionResp, err error) { - resp = CreateGetGameByVersionResp() +func (c *Client) GetGameVersion(req *GetGameVersionReq) (resp *GetGameVersionResp, err error) { + resp = CreateGetGameVersionResp() err = c.DoAction(req, resp) return } diff --git a/services/game/game.go b/services/game/game.go index aa3be74..b15682f 100644 --- a/services/game/game.go +++ b/services/game/game.go @@ -273,7 +273,7 @@ type GetGameVersionResp struct { Data GameVersionInfo `json:"data"` } -func CreateGetGameByVersionReq(gameId int, gameVersion string) *GetGameVersionReq { +func CreateGetGameVersionReq(gameId int, gameVersion string) *GetGameVersionReq { req := &GetGameVersionReq{ RpcRequest: &requests.RpcRequest{}, } @@ -284,7 +284,7 @@ func CreateGetGameByVersionReq(gameId int, gameVersion string) *GetGameVersionRe return req } -func CreateGetGameByVersionResp() *GetGameVersionResp { +func CreateGetGameVersionResp() *GetGameVersionResp { return &GetGameVersionResp{ BaseResponse: &responses.BaseResponse{}, }