个人简介相关接口

This commit is contained in:
2024-01-19 11:56:34 +08:00
parent fd555d167f
commit 8393a73c41
6 changed files with 425 additions and 47 deletions
+27 -5
View File
@@ -45,14 +45,9 @@ class DoctorAuthController extends AbstractController
/**
* 获取身份认证信息
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getAuthIden(): ResponseInterface
{
$request = $this->container->get(DoctorAuthRequest::class);
$request->scene('getAuthIden')->validateResolved();
$DoctorAuthService = new DoctorAuthService();
$data = $DoctorAuthService->getAuthIden();
return $this->response->json($data);
@@ -122,4 +117,31 @@ class DoctorAuthController extends AbstractController
$data = $DoctorAuthService->getDoctorIntroductionFailReason();
return $this->response->json($data);
}
/**
* 获取个人简介
* @return ResponseInterface
*/
public function getDoctorIntroduction(): ResponseInterface
{
$DoctorAuthService = new DoctorAuthService();
$data = $DoctorAuthService->getDoctorIntroduction();
return $this->response->json($data);
}
/**
* 修改个人简介
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function putDoctorIntroduction(): ResponseInterface
{
$request = $this->container->get(DoctorAuthRequest::class);
$request->scene('putDoctorIntroduction')->validateResolved();
$DoctorAuthService = new DoctorAuthService();
$data = $DoctorAuthService->putDoctorIntroduction();
return $this->response->json($data);
}
}