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
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
@ -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{},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user