struct 标签
This commit is contained in:
parent
42de65a78c
commit
9ae1c96a6b
@ -10,9 +10,9 @@ import (
|
|||||||
|
|
||||||
// 封号或禁言
|
// 封号或禁言
|
||||||
type AccountBanReq struct {
|
type AccountBanReq struct {
|
||||||
Uid string `json:"uid"` // uid
|
Uid string `json:"uid"` // uid
|
||||||
iType int32 // 0 封号 1 禁言
|
IType int32 `json:"iType"` // 0 封号 1 禁言
|
||||||
iValue int32 // 类型对应的值
|
Value int32 `json:"iValue"` // 类型对应的值
|
||||||
}
|
}
|
||||||
|
|
||||||
//禁封消息
|
//禁封消息
|
||||||
@ -32,8 +32,8 @@ func (this *Api_Comp) AccountBanNotify(c *engine.Context) {
|
|||||||
|
|
||||||
rpcMsg := &pb.RPCAccountBan{
|
rpcMsg := &pb.RPCAccountBan{
|
||||||
Uid: req.Uid,
|
Uid: req.Uid,
|
||||||
Key: req.iType,
|
Key: req.IType,
|
||||||
Value: req.iValue,
|
Value: req.Value,
|
||||||
}
|
}
|
||||||
if _, err = this.module.service.RpcGo(
|
if _, err = this.module.service.RpcGo(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
|
Loading…
Reference in New Issue
Block a user