新增医生问诊配置相关接口

This commit is contained in:
2024-01-02 14:00:47 +08:00
parent 4d5db7760a
commit b53b0204cf
7 changed files with 528 additions and 103 deletions
-48
View File
@@ -40,54 +40,6 @@ class UserDoctorController extends AbstractController
return $this->response->json($data);
}
/**
* 获取医生问诊配置
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getInquiryConfig(): ResponseInterface
{
$request = $this->container->get(UserDoctorRequest::class);
$request->scene('getInquiryConfig')->validateResolved();
$DoctorInquiryService = new DoctorInquiryService();
$data = $DoctorInquiryService->getInquiryConfig();
return $this->response->json($data);
}
/**
* 医生问诊开关
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function putInquiryOpen(): ResponseInterface
{
$request = $this->container->get(UserDoctorRequest::class);
$request->scene('putInquiryOpen')->validateResolved();
$DoctorInquiryService = new DoctorInquiryService();
$data = $DoctorInquiryService->putInquiryOpen();
return $this->response->json($data);
}
/**
* 修改医生问诊配置
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function putInquiryConfig(): ResponseInterface
{
$request = $this->container->get(UserDoctorRequest::class);
$request->scene('putInquiryConfig')->validateResolved();
$DoctorInquiryService = new DoctorInquiryService();
$data = $DoctorInquiryService->putInquiryConfig();
return $this->response->json($data);
}
/**
* 获取医生银行卡
* @return ResponseInterface