新增获取合作公司检测项目接口

This commit is contained in:
2023-07-26 16:00:05 +08:00
parent d7adc01b84
commit 822756c39c
3 changed files with 50 additions and 6 deletions
+13
View File
@@ -25,4 +25,17 @@ class DetectionController extends AbstractController
$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);
}
}