新增搜索商品库存字段返回

This commit is contained in:
2023-03-23 17:20:03 +08:00
parent 9dd6116f44
commit 983f4d8909
8 changed files with 106 additions and 10 deletions
@@ -205,8 +205,6 @@ class PatientFamilyController extends AbstractController
/**
* 获取家庭成员用药记录列表
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getFamilyProductRecord(): ResponseInterface
{
+28 -1
View File
@@ -64,6 +64,33 @@ class UserPatientController extends AbstractController
return $this->response->json($data);
}
// public function
/**
* 获取购物车药品数据
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getShoppingCart(): ResponseInterface
{
$UserPatientService = new UserPatientService();
$data = $UserPatientService->getShoppingCart();
return $this->response->json($data);
}
/**
* 添加购物车药品数据
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function addShoppingCart(): ResponseInterface
{
$request = $this->container->get(UserPatientRequest::class);
$request->scene('addShoppingCart')->validateResolved();
$UserPatientService = new UserPatientService();
$data = $UserPatientService->addShoppingCart();
return $this->response->json($data);
}
}