Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
9cc2b1f80f
@ -158,3 +158,26 @@
|
|||||||
"data":"",
|
"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":"",
|
||||||
|
}
|
||||||
|
```
|
@ -11,8 +11,8 @@ 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:"value"` // 类型对应的值
|
||||||
}
|
}
|
||||||
|
|
||||||
//禁封消息
|
//禁封消息
|
||||||
@ -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