1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-21 19:22:45 +08:00
course-tencent-cloud/app/Http/Api/Controllers/ImFriendController.php
2021-10-04 18:56:08 +08:00

31 lines
594 B
PHP

<?php
/**
* @copyright Copyright (c) 2021 深圳市酷瓜软件有限公司
* @license https://opensource.org/licenses/GPL-2.0
* @link https://www.koogua.com
*/
namespace App\Http\Api\Controllers;
use App\Services\Logic\Im\FriendQuit as FriendQuitService;
/**
* @RoutePrefix("/api/im/friend")
*/
class ImFriendController extends Controller
{
/**
* @Post("/{id:[0-9]+}/quit", name="api.im_friend.quit")
*/
public function quitAction($id)
{
$service = new FriendQuitService();
$service->handle($id);
return $this->jsonSuccess();
}
}