GM 后台封号接口文档说明

This commit is contained in:
meixiongfeng 2023-11-20 10:50:03 +08:00
parent c0d02c4907
commit f2a3172174
2 changed files with 26 additions and 3 deletions

View File

@ -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":"",
}
```

View File

@ -10,9 +10,9 @@ import (
// 封号或禁言
type AccountBanReq struct {
Uid string `json:"uid"` // uid
IType int32 `json:"iType"` // 0 封号 1 禁言
Value int32 `json:"iValue"` // 类型对应的值
Uid string `json:"uid"` // uid
IType int32 `json:"itype"` // 0 封号 1 禁言
Value int32 `json:"value"` // 类型对应的值
}
//禁封消息