新增搜索平台疾病分类接口
This commit is contained in:
@@ -114,7 +114,12 @@ class BasicDataController extends AbstractController
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
// 搜索商品
|
||||
/**
|
||||
* 搜索商品
|
||||
* @return ResponseInterface
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function getProductSearch(): ResponseInterface
|
||||
{
|
||||
$request = $this->container->get(BasicDataRequest::class);
|
||||
@@ -124,4 +129,20 @@ class BasicDataController extends AbstractController
|
||||
$data = $BasicDataService->getProductSearch();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索平台疾病分类
|
||||
* @return ResponseInterface
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function getDiseaseIcdSearch(): ResponseInterface
|
||||
{
|
||||
$request = $this->container->get(BasicDataRequest::class);
|
||||
$request->scene('getDiseaseIcdSearch')->validateResolved();
|
||||
|
||||
$BasicDataService = new BasicDataService();
|
||||
$data = $BasicDataService->getDiseaseIcdSearch();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user