新增获取处方详情接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user