检测是否可以接诊

This commit is contained in:
2023-02-27 18:02:41 +08:00
parent 9b137d16f5
commit 5825138b7f
12 changed files with 357 additions and 48 deletions
@@ -2,7 +2,9 @@
namespace App\Controller;
use App\Request\OrderInquiryRequest;
use App\Request\PatientDoctorRequest;
use App\Services\OrderInquiryService;
use App\Services\PatientDoctorService;
use App\Services\UserDoctorService;
use Psr\Container\ContainerExceptionInterface;
@@ -52,4 +54,20 @@ class PatientDoctorController extends AbstractController
$data = $PatientDoctorService->getDoctorProfile();
return $this->response->json($data);
}
/**
* 检测是否可以接诊
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getDoctorInquiryCheck(): ResponseInterface
{
$request = $this->container->get(PatientDoctorRequest::class);
$request->scene('getDoctorInquiryCheck')->validateResolved();
$PatientDoctorService = new PatientDoctorService();
$data = $PatientDoctorService->getDoctorInquiryCheck();
return $this->response->json($data);
}
}