后端 + 前端:提交购物车订单
This commit is contained in:
@@ -53,7 +53,7 @@ public interface CartService {
|
||||
*
|
||||
* @return 是否成功
|
||||
*/
|
||||
CommonResult<Boolean> delete(Integer userId, List<Integer> skuIds);
|
||||
CommonResult<Boolean> deleteList(Integer userId, List<Integer> skuIds);
|
||||
|
||||
/**
|
||||
* 清空购物车
|
||||
|
||||
@@ -6,7 +6,7 @@ public enum CartItemStatusEnum {
|
||||
|
||||
ENABLE(1, "正常"),
|
||||
DELETE_BY_MANUAL(2, "主动删除"),
|
||||
DELETE_BY_(3, "下单删除"),
|
||||
DELETE_BY_ORDER(3, "下单删除"),
|
||||
;
|
||||
|
||||
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CartItemStatusEnum::getValue).toArray();
|
||||
|
||||
@@ -24,6 +24,7 @@ public enum OrderErrorCodeEnum {
|
||||
ORDER_GET_PAY_FAIL(1008000010, "调用pay失败!"),
|
||||
ORDER_NOT_USER_ORDER(1008000011, "不是该用户的订单!"),
|
||||
ORDER_UNABLE_CONFIRM_ORDER(1008000012, "状态不对不能确认订单!"),
|
||||
ORDER_CREATE_CART_IS_EMPTY(1008000013, "购物车无选中的商品,无法创建订单"),
|
||||
|
||||
// order item
|
||||
ORDER_ITEM_ONLY_ONE(1008000200, "订单Item只有一个!"),
|
||||
|
||||
Reference in New Issue
Block a user