新增处方详情接口

This commit is contained in:
2023-03-01 13:52:06 +08:00
parent 523242ff4c
commit 80b63cd73d
10 changed files with 389 additions and 23 deletions
+5
View File
@@ -227,9 +227,14 @@ class UserDoctorController extends AbstractController
/**
* 获取处方详情
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getPrescriptionInfo(): ResponseInterface
{
$request = $this->container->get(UserDoctorRequest::class);
$request->scene('getPrescriptionInfo')->validateResolved();
$UserDoctorService = new UserDoctorService();
$data = $UserDoctorService->getPrescriptionInfo();
return $this->response->json($data);