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

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
+4 -6
View File
@@ -310,17 +310,15 @@ Router::addGroup('/patient', function () {
Router::addGroup('/product', function () {
// 购物车
Router::addGroup('/shopping', function () {
// 获取购物车
Router::get('/cart', [UserPatientController::class, 'addShoppingCart']);
// 获取购物车药品数据
Router::get('/cart', [UserPatientController::class, 'getShoppingCart']);
// 添加购物车
// 添加购物车药品数据
Router::post('/cart', [UserPatientController::class, 'addShoppingCart']);
// 修改购物车
// 修改购物车药品数据
Router::put('/cart', [UserPatientController::class, 'putShoppingCart']);
});
});
// 订单