后端 + 前端:提交购物车订单

This commit is contained in:
YunaiV
2019-04-14 01:28:41 +08:00
parent b2abc625d1
commit 38b2613add
11 changed files with 146 additions and 38 deletions

View File

@@ -53,7 +53,7 @@ public interface CartService {
*
* @return 是否成功
*/
CommonResult<Boolean> delete(Integer userId, List<Integer> skuIds);
CommonResult<Boolean> deleteList(Integer userId, List<Integer> skuIds);
/**
* 清空购物车

View File

@@ -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();

View File

@@ -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只有一个!"),