From d283be207b09126fdec900ce3172d2cbdeb3f7ac Mon Sep 17 00:00:00 2001 From: huangqz Date: Thu, 10 Jul 2025 18:26:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E5=AE=9E=E5=90=8D=E5=8F=82=E6=95=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/game/client_test.go | 2 +- services/game/game.go | 34 ++++++++++++++++++---------------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/services/game/client_test.go b/services/game/client_test.go index ecdcc8f..4bcf03e 100644 --- a/services/game/client_test.go +++ b/services/game/client_test.go @@ -165,7 +165,7 @@ func TestGetRealAuthBlackList(t *testing.T) { t.Log(isBlockOutIos) } -// 获取实名黑名单 +// 获取游戏实名参数 func TestGetGameRealAuthInfo(t *testing.T) { client, err := NewClient() if err != nil { diff --git a/services/game/game.go b/services/game/game.go index c59bffe..efa199f 100644 --- a/services/game/game.go +++ b/services/game/game.go @@ -398,24 +398,26 @@ type GetGameRealAuthInfoReq struct { GameId int64 `position:"Body" field:"game_id" default:"-" ` } +type GetGameRealAuthInfoRespData struct { + GroupName string `json:"group_name"` + GroupDescription int `json:"group_description"` + VerifiedTime string `json:"verified_time"` + AreaProvince string `json:"area_province"` + VersionInfo string `json:"version_info"` + IsReal int `json:"is_real"` + IsDirect int `json:"is_direct"` + AuthChannel string `json:"auth_channel"` + StandbyAuthChannel string `json:"standby_auth_channel"` + ProtectTime int `json:"protect_time"` + GovIoReport int `json:"gov_io_report"` + MinorBan int `json:"minor_ban"` +} + type GetGameRealAuthInfoResp struct { *responses.BaseResponse - Code int `json:"code"` - Msg string `json:"msg"` - Data struct { - GroupName string `json:"group_name"` - GroupDescription int `json:"group_description"` - VerifiedTime string `json:"verified_time"` - AreaProvince string `json:"area_province"` - VersionInfo string `json:"version_info"` - IsReal int `json:"is_real"` - IsDirect int `json:"is_direct"` - AuthChannel string `json:"auth_channel"` - StandbyAuthChannel string `json:"standby_auth_channel"` - ProtectTime int `json:"protect_time"` - GovIoReport int `json:"gov_io_report"` - MinorBan int `json:"minor_ban"` - } `json:"data"` + Code int `json:"code"` + Msg string `json:"msg"` + Data GetGameRealAuthInfoRespData `json:"data"` } func CreateGetGameRealAuthInfoReq(gameId int64) *GetGameRealAuthInfoReq {