1
This commit is contained in:
@@ -78,18 +78,18 @@ class UserPatientController extends AbstractController
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加购物车药品数据
|
||||
* 修改购物车药品数据
|
||||
* @return ResponseInterface
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function addShoppingCart(): ResponseInterface
|
||||
public function putShoppingCart(): ResponseInterface
|
||||
{
|
||||
$request = $this->container->get(UserPatientRequest::class);
|
||||
$request->scene('addShoppingCart')->validateResolved();
|
||||
$request->scene('putShoppingCart')->validateResolved();
|
||||
|
||||
$UserPatientService = new UserPatientService();
|
||||
$data = $UserPatientService->addShoppingCart();
|
||||
$data = $UserPatientService->putShoppingCart();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user