refactor(game): 重命名 GetGameByVersion 相关函数
This commit is contained in:
parent
7e9eae718c
commit
ba79540f78
@ -83,8 +83,8 @@ func (c *Client) GetIsBlockOutIos(req *IsBlockOutIosReq) (resp *IsBlockOutIosRes
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) GetGameByVersion(req *GetGameVersionReq) (resp *GetGameVersionResp, 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
|
||||||
}
|
}
|
||||||
|
@ -273,7 +273,7 @@ type GetGameVersionResp struct {
|
|||||||
Data GameVersionInfo `json:"data"`
|
Data GameVersionInfo `json:"data"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateGetGameByVersionReq(gameId int, gameVersion string) *GetGameVersionReq {
|
func CreateGetGameVersionReq(gameId int, gameVersion string) *GetGameVersionReq {
|
||||||
req := &GetGameVersionReq{
|
req := &GetGameVersionReq{
|
||||||
RpcRequest: &requests.RpcRequest{},
|
RpcRequest: &requests.RpcRequest{},
|
||||||
}
|
}
|
||||||
@ -284,7 +284,7 @@ func CreateGetGameByVersionReq(gameId int, gameVersion string) *GetGameVersionRe
|
|||||||
return req
|
return req
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateGetGameByVersionResp() *GetGameVersionResp {
|
func CreateGetGameVersionResp() *GetGameVersionResp {
|
||||||
return &GetGameVersionResp{
|
return &GetGameVersionResp{
|
||||||
BaseResponse: &responses.BaseResponse{},
|
BaseResponse: &responses.BaseResponse{},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user