新增修改用户配置,获取用户配置接口

This commit is contained in:
2023-09-22 13:16:46 +08:00
parent 668b95a229
commit e41253d65d
6 changed files with 209 additions and 81 deletions
+27
View File
@@ -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);
}
}