修改踢人接口
This commit is contained in:
parent
13a6e20087
commit
7b904f4d5f
@ -219,7 +219,7 @@ func TestKickUser(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
} // CreateKickUserReq
|
||||
getRealAuthBlackListReq := CreateKickUserReq(8677, 123, "8676", time.Now().Unix())
|
||||
getRealAuthBlackListReq := CreateKickUserReq(8677, "wzcqtest", "8676", time.Now().Unix())
|
||||
kickUserResp, err := client.KickUser(getRealAuthBlackListReq)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
@ -447,8 +447,8 @@ func CreateGetGameRealAuthInfoResp() *GetGameRealAuthInfoResp {
|
||||
// 踢人下线
|
||||
type KickUserReq struct {
|
||||
*requests.RpcRequest
|
||||
GameId int64 `position:"Body" field:"game_id" default:"-" `
|
||||
Uid int64 `position:"Body" field:"uid" default:"-" `
|
||||
GameSign string `position:"Body" field:"game_sign" default:"-" `
|
||||
ServerSign string `position:"Body" field:"server_sign" default:"-" `
|
||||
Time int64 `position:"Body" field:"time" default:"-" `
|
||||
}
|
||||
@ -470,11 +470,11 @@ type KickUserResp struct {
|
||||
Data KickUserRespData `json:"data"`
|
||||
}
|
||||
|
||||
func CreateKickUserReq(gameId int64, uid int64, serverSign string, time int64) *KickUserReq {
|
||||
func CreateKickUserReq(uid int64, gameSign string, serverSign string, time int64) *KickUserReq {
|
||||
req := &KickUserReq{
|
||||
RpcRequest: &requests.RpcRequest{},
|
||||
GameId: gameId,
|
||||
Uid: uid,
|
||||
GameSign: gameSign,
|
||||
ServerSign: serverSign,
|
||||
Time: time,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user