6
0

refactor(game): 移除未使用的游戏公司信息获取功能

This commit is contained in:
余 欣怀 2025-06-25 14:59:31 +08:00
parent efaf155924
commit e4b852e4a6
2 changed files with 1 additions and 61 deletions

View File

@ -134,18 +134,3 @@ func TestIsBlockOutIos(t *testing.T) {
}
t.Log(isBlockOutIos)
}
func TestGetGameCompanyBySign(t *testing.T) {
client, err := NewClient()
if err != nil {
t.Error(err)
}
gameCompanyBySignReq := CreateGetGameCompanyBySignReq()
gameCompanyBySignReq.GameSign = "tjqy"
gameCompanyBySign, err := client.GetGameCompanyBySign(gameCompanyBySignReq)
if err != nil {
t.Error(err)
return
}
t.Log(gameCompanyBySign)
}

View File

@ -210,7 +210,7 @@ func CreateGetGameSimpleListResp() *GetGameSimpleListResp {
}
// GameCompany
// 获取根游戏记录
// ==== 获取根游戏信息
type GameCompany struct {
Id int `json:"id"`
GameSign string `json:"game_sign"`
@ -289,48 +289,3 @@ func CreateGetGameVersionResp() *GetGameVersionResp {
BaseResponse: &responses.BaseResponse{},
}
}
// === 获取根游戏信息
type GameSignInfo struct {
Id int `json:"id"`
GameSign string `json:"game_sign"`
GameName string `json:"game_name"`
ContractName string `json:"contract_name"`
PayKey string `json:"pay_key"`
LoginKey string `json:"login_key"`
Status int `json:"status"`
Company string `json:"company"`
System string `json:"system"`
Sync int `json:"sync"`
Type int `json:"type"`
GameProductID int `json:"game_product_id"`
}
type GetGameCompanyBySignReq struct {
*requests.RpcRequest
GameSign string `position:"Body" field:"gameSign"`
}
type GetGameCompanyBySignResp struct {
*responses.BaseResponse
Code int `json:"code"`
Msg string `json:"msg"`
Data GameSignInfo `json:"data"`
}
func CreateGetGameCompanyBySignReq() *GetGameCompanyBySignReq {
req := &GetGameCompanyBySignReq{
RpcRequest: &requests.RpcRequest{},
}
req.InitWithApiInfo(HOST, VERSION, "/api/game/getGameCompanyBySign")
req.Method = requests.POST
return req
}
func CreateGetGameCompanyBySignResp() *GetGameCompanyBySignResp {
resp := &GetGameCompanyBySignResp{
BaseResponse: &responses.BaseResponse{},
}
return resp
}