rk
2025-12-15 a1a6e227628810259fcba0fff146792e97a80b8a
server/dmmall_service/src/main/java/com/doumee/core/utils/Constants.java
@@ -17,6 +17,8 @@
    public static final int TWO = 2 ;
    public static final int THREE = 3 ;
    public static final int FOUR = 4 ;
    public static final String LABELS_IMG ="LABELS_IMG" ;
    /**
     * mq tag
     */
@@ -40,6 +42,14 @@
    public static final String RESOURCE_PATH = "RESOURCE_PATH";
    public static final String INITIAL_PASSWORD = "INITIAL_PASSWORD";
    public static final String ACCESS_TOKEN = "ACCESS_TOKEN";
    public static final String MINIMUM_AVAILABLE_INTEGRAL = "MINIMUM_AVAILABLE_INTEGRAL";//最低可用积分配置
    public static final String SHOP_CONFIG = "SHOP_CONFIG";
    public static final String INTEGRAL_EXCHANGE_CASH_RATA = "INTEGRAL_EXCHANGE_CASH_RATA"; //积分-现金兑换比例(XXX积分抵扣1元)
    public static final String CASH_EXCHANGE_INTEGRAL_RATA = "CASH_EXCHANGE_INTEGRAL_RATA";//现金-积分兑换比例(1元可得到XXX积分)
    public static final String INITIAL_ROLE = "INITIAL_ROLE";
@@ -917,7 +927,7 @@
        HOMEZHUANQU(12, "首页专区", "首页专区"),
        BIG_AREA(13, "区域分类", "区域分类"),
        APPLICABLE_BRAND(14, "适用品牌", "适用品牌"),
        SERIES_BRAND(15, "系列品牌", "系列品牌"),
        SERIES_BRAND(15, "品牌系列", "品牌系列"),
        ;
        // 成员变量
        private String name;
@@ -1040,4 +1050,68 @@
        }
    }
    public static String getRandomNumber(){
        Random random = new Random();
        long randomNumber = (long)(random.nextDouble() * 90000000000L) + 100000000000L;
        return randomNumber +"";
    }
    public  enum INTEGRAL_TYPE{
        ORDER_PAY(0, "订单消耗", -1),
        ORDER_CANCEL(1, "订单取消返还", 1),
        ;
        // 成员变量
        private String name;
        private int key;
        private int type;// 描述
        // 构造方法
        INTEGRAL_TYPE(int key, String name, int type) {
            this.name = name;
            this.key = key;
            this.type = type;
        }
        // 普通方法
        public static String getName(int index) {
            for (INTEGRAL_TYPE c : INTEGRAL_TYPE.values()) {
                if (c.getKey() == index) {
                    return c.name;
                }
            }
            return null;
        }
        // get set 方法
        public String getName() {
            return name;
        }
        public void setName(String name) {
            this.name = name;
        }
        public int getKey() {
            return key;
        }
        public void setKey(int key) {
            this.key = key;
        }
        public int getType() {
            return type;
        }
        public void setType(int type) {
            this.type = type;
        }
    }
}