This commit is contained in:
2023-03-23 21:05:42 +08:00
parent 983f4d8909
commit 408825ad95
6 changed files with 136 additions and 22 deletions
+4 -4
View File
@@ -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);
}