新增获取处方详情接口

This commit is contained in:
2023-03-17 15:56:00 +08:00
parent 929767de14
commit 0370c31431
4 changed files with 117 additions and 3 deletions
@@ -28,4 +28,31 @@ class UserPharmacistController extends AbstractController
$data = $UserPharmacistService->getPrescriptionList();
return $this->response->json($data);
}
/**
* 设置上下线
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function putOnOff(): ResponseInterface
{
$request = $this->container->get(UserPharmacistRequest::class);
$request->scene('putOnOff')->validateResolved();
$UserPharmacistService = new UserPharmacistService();
$data = $UserPharmacistService->putOnOff();
return $this->response->json($data);
}
/**
* 获取处方详情
* @return ResponseInterface
*/
public function getPrescriptionInfo(): ResponseInterface
{
$UserPharmacistService = new UserPharmacistService();
$data = $UserPharmacistService->getPrescriptionInfo();
return $this->response->json($data);
}
}