From d2c5d53aba5c6ccfc8ce4d832932ffefdf1827c0 Mon Sep 17 00:00:00 2001 From: huangqz Date: Thu, 10 Jul 2025 15:45:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7=E5=AE=9E?= =?UTF-8?q?=E5=90=8D=E9=BB=91=E5=90=8D=E5=8D=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/game/client.go | 7 +++++++ services/game/client_test.go | 15 ++++++++++++++ services/game/game.go | 40 ++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) diff --git a/services/game/client.go b/services/game/client.go index e701776..54d2476 100644 --- a/services/game/client.go +++ b/services/game/client.go @@ -95,3 +95,10 @@ func (c *Client) GetConfig(req *GetConfigReq) (resp *GetConfigResp, err error) { err = c.DoAction(req, resp) return } + +// GetRealAuthBlackList 获取实名黑名单 +func (c *Client) GetRealAuthBlackList(req *GetRealAuthBlackListReq) (resp *GetRealAuthBlackListResp, err error) { + resp = CreateGetRealAuthBlackListResp() + err = c.DoAction(req, resp) + return +} diff --git a/services/game/client_test.go b/services/game/client_test.go index 7f2ff9d..b7ee7f8 100644 --- a/services/game/client_test.go +++ b/services/game/client_test.go @@ -149,3 +149,18 @@ func TestGetConfig(t *testing.T) { } t.Log(isBlockOutIos) } + +// 获取实名黑名单 +func TestGetRealAuthBlackList(t *testing.T) { + client, err := NewClient() + if err != nil { + t.Error(err) + } + getRealAuthBlackListReq := CreateGetRealAuthBlackListReq() + isBlockOutIos, err := client.GetRealAuthBlackList(getRealAuthBlackListReq) + if err != nil { + t.Error(err) + return + } + t.Log(isBlockOutIos) +} diff --git a/services/game/game.go b/services/game/game.go index e8ba4f1..86eb9f0 100644 --- a/services/game/game.go +++ b/services/game/game.go @@ -350,3 +350,43 @@ func CreateGetConfigResp() *GetConfigResp { BaseResponse: &responses.BaseResponse{}, } } + +// GetRealAuthBlackListReq +// 获取实名黑名单 +type GetRealAuthBlackListReq struct { + *requests.RpcRequest + Key string `position:"Query" field:"key" default:"-" ` +} + +type GetRealAuthBlackListRespDataItem struct { + Id int `json:"id"` + TrueName string `json:"true_name"` + IdCard string `json:"id_card"` + Remark string `json:"remark"` + CreateBy string `json:"create_by"` + UpdateBy string `json:"update_by"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` +} + +type GetRealAuthBlackListResp struct { + *responses.BaseResponse + Code int `json:"code"` + Msg string `json:"msg"` + Data []GetRealAuthBlackListRespDataItem `json:"data"` +} + +func CreateGetRealAuthBlackListReq() *GetRealAuthBlackListReq { + req := &GetRealAuthBlackListReq{ + RpcRequest: &requests.RpcRequest{}, + } + req.InitWithApiInfo(HOST, VERSION, "/api/game/getRealAuthBlackList") + req.Method = requests.GET + return req +} + +func CreateGetRealAuthBlackListResp() *GetRealAuthBlackListResp { + return &GetRealAuthBlackListResp{ + BaseResponse: &responses.BaseResponse{}, + } +}