新增搜索商品库存字段返回
This commit is contained in:
@@ -205,8 +205,6 @@ class PatientFamilyController extends AbstractController
|
||||
/**
|
||||
* 获取家庭成员用药记录列表
|
||||
* @return ResponseInterface
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function getFamilyProductRecord(): ResponseInterface
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user