新增接口弹窗

This commit is contained in:
2023-04-27 18:20:32 +08:00
parent 859cbcd2f7
commit 251d97c901
3 changed files with 11 additions and 0 deletions
+5
View File
@@ -156,9 +156,14 @@ class UserController extends AbstractController
/**
* 获取弹窗数据
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getUserPopup(): ResponseInterface
{
$request = $this->container->get(UserRequest::class);
$request->scene('getUserPopup')->validateResolved();
$UserService = new UserService();
$data = $UserService->getUserPopup();
return $this->response->json($data);