From f2a31721742ef1258ef8298bde2774d490ee8ff5 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 20 Nov 2023 10:50:03 +0800 Subject: [PATCH] =?UTF-8?q?GM=20=E5=90=8E=E5=8F=B0=E5=B0=81=E5=8F=B7?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=96=87=E6=A1=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/梦工厂后台AIP文档.md | 23 +++++++++++++++++++++++ modules/web/api_account_ban.go | 6 +++--- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/bin/梦工厂后台AIP文档.md b/bin/梦工厂后台AIP文档.md index b654a65b4..84dba2a25 100644 --- a/bin/梦工厂后台AIP文档.md +++ b/bin/梦工厂后台AIP文档.md @@ -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":"", +} ``` \ No newline at end of file diff --git a/modules/web/api_account_ban.go b/modules/web/api_account_ban.go index 3d3aef58d..e85317b20 100644 --- a/modules/web/api_account_ban.go +++ b/modules/web/api_account_ban.go @@ -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"` // 类型对应的值 } //禁封消息