6
0

refactor(game): 重命名 GetGameByVersion 相关函数

This commit is contained in:
余 欣怀 2025-06-20 15:44:41 +08:00
parent 7e9eae718c
commit ba79540f78
2 changed files with 4 additions and 4 deletions

View File

@ -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
}

View File

@ -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{},
}