新增退出登录接口

This commit is contained in:
2023-03-04 10:15:49 +08:00
parent efd4718255
commit d7983a1f2b
3 changed files with 53 additions and 0 deletions
+13
View File
@@ -52,4 +52,17 @@ class UserController extends AbstractController
$data = $UserService->putUserName();
return $this->response->json($data);
}
/**
* 退出登陆
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function putLoginout(): ResponseInterface
{
$UserService = new UserService();
$data = $UserService->putLoginout();
return $this->response->json($data);
}
}