新增 创建检测订单 接口

This commit is contained in:
2023-07-28 14:35:25 +08:00
parent b3d0576013
commit ff5d622110
9 changed files with 441 additions and 12 deletions
+3 -2
View File
@@ -55,12 +55,13 @@ class DetectionController extends AbstractController
}
// 创建检测订单
public function addDetectionOrder(){
public function addDetectionOrder(): ResponseInterface
{
$request = $this->container->get(DetectionRequest::class);
$request->scene('addDetectionOrder')->validateResolved();
$detectionService = new DetectionService();
$data = $detectionService->getDetectionDoctorList();
$data = $detectionService->addDetectionOrder();
return $this->response->json($data);
}
}