Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
9cc2b1f80f
@ -157,4 +157,27 @@
|
||||
"msg":"成功",
|
||||
"data":"",
|
||||
}
|
||||
```
|
||||
|
||||
### 账号封禁API
|
||||
- 接口名:accountbannotify
|
||||
- 接口说明:web 服务器给玩家发送邮件
|
||||
- 请求地址:{IP}:{port}/accountbannotify
|
||||
- 请求参数:uid:玩家账号 itype:封禁类型 (0 封号 1 禁言) value :状态(0 解封 1 封禁)
|
||||
- 请求样例
|
||||
```
|
||||
{
|
||||
"uid":"dfmxf_654b54f01fce80870e761e91",
|
||||
"itype":0,
|
||||
"value":1
|
||||
}
|
||||
```
|
||||
- 返回参数 code(0:成功 -1 失败),msg(结果描述),data(返回的额外数据)
|
||||
- 返回样例
|
||||
```
|
||||
{
|
||||
"code":0,
|
||||
"msg":"成功",
|
||||
"data":"",
|
||||
}
|
||||
```
|
@ -10,9 +10,9 @@ import (
|
||||
|
||||
// 封号或禁言
|
||||
type AccountBanReq struct {
|
||||
Uid string `json:"uid"` // uid
|
||||
iType int32 // 0 封号 1 禁言
|
||||
iValue int32 // 类型对应的值
|
||||
Uid string `json:"uid"` // uid
|
||||
IType int32 `json:"itype"` // 0 封号 1 禁言
|
||||
Value int32 `json:"value"` // 类型对应的值
|
||||
}
|
||||
|
||||
//禁封消息
|
||||
@ -32,8 +32,8 @@ func (this *Api_Comp) AccountBanNotify(c *engine.Context) {
|
||||
|
||||
rpcMsg := &pb.RPCAccountBan{
|
||||
Uid: req.Uid,
|
||||
Key: req.iType,
|
||||
Value: req.iValue,
|
||||
Key: req.IType,
|
||||
Value: req.Value,
|
||||
}
|
||||
if _, err = this.module.service.RpcGo(
|
||||
context.Background(),
|
||||
|
Loading…
Reference in New Issue
Block a user