1.代客下单规格修改接口
This commit is contained in:
@@ -5,6 +5,7 @@ import cn.ysk.cashier.annotation.Log;
|
||||
import cn.ysk.cashier.dto.shoptable.AddCartDTO;
|
||||
import cn.ysk.cashier.dto.shoptable.ClearCartDTO;
|
||||
import cn.ysk.cashier.dto.shoptable.RemoveCartDTO;
|
||||
import cn.ysk.cashier.dto.shoptable.UpdateCartDTO;
|
||||
import cn.ysk.cashier.pojo.order.TbCashierCart;
|
||||
import cn.ysk.cashier.service.product.TbProductService;
|
||||
import cn.ysk.cashier.service.shop.TbShopTableService;
|
||||
@@ -45,6 +46,7 @@ public class TbPlaceController {
|
||||
this.tbProductService = tbProductService;
|
||||
this.validator = validator;
|
||||
}
|
||||
|
||||
@AnonymousAccess
|
||||
@PostMapping("/addCart")
|
||||
@Log("代客下单:#addCartDTO.tableId")
|
||||
@@ -52,6 +54,16 @@ public class TbPlaceController {
|
||||
public ResponseEntity<TbCashierCart> addCartForUser(@Valid @RequestBody AddCartDTO addCartDTO) {
|
||||
return ResponseEntity.ok(tbShopTableService.addCartForUser(addCartDTO));
|
||||
}
|
||||
|
||||
@AnonymousAccess
|
||||
@PutMapping("/updateCart")
|
||||
@Log("代客下单")
|
||||
@ApiOperation("代客下单/shop/table")
|
||||
public ResponseEntity<TbCashierCart> updateCart(@Valid @RequestBody UpdateCartDTO updateCartDTO) {
|
||||
return ResponseEntity.ok(tbShopTableService.updateCart(updateCartDTO));
|
||||
}
|
||||
|
||||
|
||||
@AnonymousAccess
|
||||
@DeleteMapping("/removeCart")
|
||||
@Log("代客下单 删除购物车商品")
|
||||
|
||||
Reference in New Issue
Block a user