mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-20 19:07:03 +08:00
33 lines
631 B
PHP
33 lines
631 B
PHP
<?php
|
|
|
|
namespace App\Http\Home\Controllers;
|
|
|
|
use App\Http\Home\Services\ImGroupUser as ImGroupUserService;
|
|
|
|
/**
|
|
* @RoutePrefix("/im/group/user")
|
|
*/
|
|
class ImGroupUserController extends Controller
|
|
{
|
|
|
|
/**
|
|
* @Post("/delete", name="home.im_group_user.delete")
|
|
*/
|
|
public function deleteAction()
|
|
{
|
|
$groupService = new ImGroupUserService();
|
|
|
|
$groupService->deleteGroupUser();
|
|
|
|
$location = $this->request->getHTTPReferer();
|
|
|
|
$content = [
|
|
'location' => $location,
|
|
'msg' => '删除成员成功',
|
|
];
|
|
|
|
return $this->jsonSuccess($content);
|
|
}
|
|
|
|
}
|