From e4b852e4a6ff259937807522487ca0bd1708387b Mon Sep 17 00:00:00 2001 From: yuxh Date: Wed, 25 Jun 2025 14:59:31 +0800 Subject: [PATCH] =?UTF-8?q?refactor(game):=20=E7=A7=BB=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E6=B8=B8=E6=88=8F=E5=85=AC=E5=8F=B8?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E8=8E=B7=E5=8F=96=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/game/client_test.go | 15 ------------ services/game/game.go | 47 +----------------------------------- 2 files changed, 1 insertion(+), 61 deletions(-) diff --git a/services/game/client_test.go b/services/game/client_test.go index a64aca2..8b71299 100644 --- a/services/game/client_test.go +++ b/services/game/client_test.go @@ -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) -} diff --git a/services/game/game.go b/services/game/game.go index 8c1d780..f22ea4d 100644 --- a/services/game/game.go +++ b/services/game/game.go @@ -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 -}