From 19dd16fcf0863805fb50366862afddb958ad639a Mon Sep 17 00:00:00 2001 From: "Mr.Huan" Date: Wed, 26 Jan 2022 09:48:13 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=A1=A5=E5=85=85=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=92=A4=E5=9B=9E=E5=8A=9F=E8=83=BDAPI=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/DialogController.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/DialogController.php b/app/Http/Controllers/Api/DialogController.php index bc560f23..0b573324 100755 --- a/app/Http/Controllers/Api/DialogController.php +++ b/app/Http/Controllers/Api/DialogController.php @@ -363,10 +363,22 @@ class DialogController extends AbstractController } /** - * 聊天消息撤回 + * @api {get} api/dialog/msg/withdraw 聊天消息撤回 + * + * @apiDescription 需要token身份 + * @apiVersion 1.0.0 + * @apiGroup dialog + * @apiName msg__withdraw + * + * @apiParam {Number} msg_id 消息ID + * + * @apiSuccess {Number} ret 返回状态码(1正确、0错误) + * @apiSuccess {String} msg 返回信息(错误描述) + * @apiSuccess {Object} data 返回数据 + * * @return array */ - public function msg__withdraw() + public function msg__withdraw(): array { $user = User::auth(); $msg_id = intval(Request::input("msg_id"));