新增 获取检测项目用途列表 接口

This commit is contained in:
2023-07-27 16:34:33 +08:00
parent 33c7cb98c5
commit b3d0576013
5 changed files with 129 additions and 18 deletions
+19 -8
View File
@@ -13,14 +13,9 @@ class DetectionController extends AbstractController
/**
* 获取合作公司检测项目列表
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getDetectionProjectList(): ResponseInterface
{
$request = $this->container->get(DetectionRequest::class);
$request->scene('getDetectionProjectList')->validateResolved();
$detectionService = new DetectionService();
$data = $detectionService->getDetectionProjectList();
return $this->response->json($data);
@@ -40,13 +35,29 @@ class DetectionController extends AbstractController
/**
* 获取检测机构合作医生列表
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getDetectionDoctorList(): ResponseInterface
{
$detectionService = new DetectionService();
$data = $detectionService->getDetectionDoctorList();
return $this->response->json($data);
}
/**
* 获取检测项目用途列表
* @return ResponseInterface
*/
public function getDetectionProjectPurposeList(): ResponseInterface
{
$detectionService = new DetectionService();
$data = $detectionService->getDetectionProjectPurposeList();
return $this->response->json($data);
}
// 创建检测订单
public function addDetectionOrder(){
$request = $this->container->get(DetectionRequest::class);
$request->scene('getDetectionDoctorList')->validateResolved();
$request->scene('addDetectionOrder')->validateResolved();
$detectionService = new DetectionService();
$data = $detectionService->getDetectionDoctorList();