container->get(DetectionRequest::class); $request->scene('getDetectionProjectList')->validateResolved(); $detectionService = new DetectionService(); $data = $detectionService->getDetectionProjectList(); return $this->response->json($data); } /** * 获取合作公司检测项目 * @return ResponseInterface * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ public function getDetectionProject(): ResponseInterface { $detectionService = new DetectionService(); $data = $detectionService->getDetectionProject(); return $this->response->json($data); } }