新增 获取检测项目用途列表 接口
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user