perf: 优化表情搜索

This commit is contained in:
kuaifan
2024-09-18 18:48:00 +08:00
parent 947e106f19
commit 0598a36b19
3 changed files with 97 additions and 24 deletions

View File

@@ -2601,4 +2601,28 @@ class DialogController extends AbstractController
//
return Base::retSuccess('success', $topMsg);
}
/**
* @api {get} api/dialog/sticker/search 54. 搜索在线表情
*
* @apiDescription 需要token身份
* @apiVersion 1.0.0
* @apiGroup dialog
* @apiName sticker__search
*
* @apiParam {String} key 关键词
*
* @apiSuccess {Number} ret 返回状态码(1正确、0错误)
* @apiSuccess {String} msg 返回信息(错误描述)
* @apiSuccess {Object} data 返回数据
*/
public function sticker__search()
{
User::auth();
//
$key = trim(Request::input('key'));
return Base::retSuccess('success', [
'list' => Extranet::sticker($key)
]);
}
}