修正获取处方详情接口返回数据

This commit is contained in:
2023-03-01 15:55:25 +08:00
parent 5a4fcaaf7f
commit e047f4971c
9 changed files with 138 additions and 20 deletions
+16
View File
@@ -239,4 +239,20 @@ class UserDoctorController extends AbstractController
$data = $UserDoctorService->getPrescriptionInfo();
return $this->response->json($data);
}
/**
* 修改处方
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function putPrescription(): ResponseInterface
{
$request = $this->container->get(UserDoctorRequest::class);
$request->scene('putPrescription')->validateResolved();
$UserDoctorService = new UserDoctorService();
$data = $UserDoctorService->putPrescription();
return $this->response->json($data);
}
}