检测是否可以接诊
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user