新增获取实名认证参数接口
This commit is contained in:
parent
85ab17cfd6
commit
2622e7c3c9
@ -102,3 +102,10 @@ func (c *Client) GetRealAuthBlackList(req *GetRealAuthBlackListReq) (resp *GetRe
|
|||||||
err = c.DoAction(req, resp)
|
err = c.DoAction(req, resp)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetGameRealAuthInfo 获取实名参数
|
||||||
|
func (c *Client) GetGameRealAuthInfo(req *GetGameRealAuthInfoReq) (resp *GetGameRealAuthInfoResp, err error) {
|
||||||
|
resp = CreateGetGameRealAuthInfoResp()
|
||||||
|
err = c.DoAction(req, resp)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
@ -164,3 +164,18 @@ func TestGetRealAuthBlackList(t *testing.T) {
|
|||||||
}
|
}
|
||||||
t.Log(isBlockOutIos)
|
t.Log(isBlockOutIos)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取实名黑名单
|
||||||
|
func TestGetGameRealAuthInfo(t *testing.T) {
|
||||||
|
client, err := NewClient()
|
||||||
|
if err != nil {
|
||||||
|
t.Error(err)
|
||||||
|
}
|
||||||
|
getGameRealAuthInfoReq := CreateGetGameRealAuthInfoReq(7081)
|
||||||
|
isBlockOutIos, err := client.GetGameRealAuthInfo(getGameRealAuthInfoReq)
|
||||||
|
if err != nil {
|
||||||
|
t.Error(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
t.Log(isBlockOutIos)
|
||||||
|
}
|
||||||
|
@ -390,3 +390,46 @@ func CreateGetRealAuthBlackListResp() *GetRealAuthBlackListResp {
|
|||||||
BaseResponse: &responses.BaseResponse{},
|
BaseResponse: &responses.BaseResponse{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetGameRealAuthInfoReq
|
||||||
|
// 获取实名参数
|
||||||
|
type GetGameRealAuthInfoReq struct {
|
||||||
|
*requests.RpcRequest
|
||||||
|
GameId int64 `position:"Body" field:"game_id" default:"-" `
|
||||||
|
}
|
||||||
|
|
||||||
|
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"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func CreateGetGameRealAuthInfoReq(gameId int64) *GetGameRealAuthInfoReq {
|
||||||
|
req := &GetGameRealAuthInfoReq{
|
||||||
|
RpcRequest: &requests.RpcRequest{},
|
||||||
|
GameId: gameId,
|
||||||
|
}
|
||||||
|
req.InitWithApiInfo(HOST, VERSION, "/api/login/getGameRealAuthInfo")
|
||||||
|
req.Method = requests.POST
|
||||||
|
return req
|
||||||
|
}
|
||||||
|
|
||||||
|
func CreateGetGameRealAuthInfoResp() *GetGameRealAuthInfoResp {
|
||||||
|
return &GetGameRealAuthInfoResp{
|
||||||
|
BaseResponse: &responses.BaseResponse{},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user