新增修改用户配置,获取用户配置接口
This commit is contained in:
@@ -189,4 +189,31 @@ class UserController extends AbstractController
|
||||
$data = $UserService->getLocation();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户配置
|
||||
* @return ResponseInterface
|
||||
*/
|
||||
public function getUserSystem(): ResponseInterface
|
||||
{
|
||||
$UserService = new UserService();
|
||||
$data = $UserService->getUserSystem();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户配置
|
||||
* @return ResponseInterface
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function putUserSystem(): ResponseInterface
|
||||
{
|
||||
$request = $this->container->get(UserRequest::class);
|
||||
$request->scene('putUserSystem')->validateResolved();
|
||||
|
||||
$UserService = new UserService();
|
||||
$data = $UserService->putUserSystem();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user