diff --git a/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/common/constant/OmsConstants.java b/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/common/constant/OmsConstants.java new file mode 100644 index 000000000..383bdbba8 --- /dev/null +++ b/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/common/constant/OmsConstants.java @@ -0,0 +1,28 @@ +package com.youlai.mall.oms.common.constant; + +/** + * 订单常量 + * + * @author haoxr + * @date 2021/03/16 + */ +public interface OmsConstants { + + /** + * 会员购物车缓存KEY前缀 + */ + String MEMBER_CART_PREFIX = "MEMBER:CART:"; + + /** + * 订单防重提交锁KEY前缀 + */ + String ORDER_RESUBMIT_LOCK_PREFIX = "ORDER:RESUBMIT_LOCK:"; + + + /** + * 订单锁前缀 + * + */ + String ORDER_LOCK_PREFIX = "ORDER:LOCK:"; + +}