rk
5 天以前 84ae873e1c19ca7d2ffc5c98248285706dae818b
server/services/src/main/java/com/doumee/core/constants/Constants.java
@@ -33,6 +33,130 @@
    public static final String DINGDING_TOKEN ="DINGDING_TOKEN" ;
    public static final String MINI_PROGRAMME ="MINI_PROGRAMME" ;
    // ==================== 抖音核销配置(存于字典 DOUYIN_CONFIG,后台可改、免重启)====================
    /** 字典编码:抖音核销配置(system_dict.code) */
    public static final String DOUYIN_CONFIG ="DOUYIN_CONFIG" ;
    /** 字典项标签:抖音应用 client_key */
    public static final String DOUYIN_CLIENT_KEY ="CLIENT_KEY" ;
    /** 字典项标签:抖音应用 client_secret */
    public static final String DOUYIN_CLIENT_SECRET ="CLIENT_SECRET" ;
    /** 字典项标签:来客商户根账户ID */
    public static final String DOUYIN_ACCOUNT_ID ="ACCOUNT_ID" ;
    /** 字典项标签:核销门店ID(单门店) */
    public static final String DOUYIN_POI_ID ="POI_ID" ;
    // ==================== 抖音核销枚举(对应 douyin_verify_log / douyin_verify_record 表字段取值)====================
    /**
     * 抖音核销操作日志类型 —— 对应 douyin_verify_log.operate_type:0验券准备 1核销 2撤销核销
     */
    public enum DOUYIN_VERIFY_OPERATE_TYPE {
        PREPARE(0, "验券准备", "扫码/输码准备核销"),
        VERIFY(1, "核销", "验券核销"),
        CANCEL(2, "撤销核销", "撤销已核销记录"),
        ;
        String name;
        Integer key;
        String info;
        DOUYIN_VERIFY_OPERATE_TYPE(Integer key, String name, String info) {
            this.name = name;
            this.key = key;
            this.info = info;
        }
        public String getName() {
            return name;
        }
        public Integer getKey() {
            return key;
        }
        public String getInfo() {
            return info;
        }
    }
    /**
     * 抖音核销操作日志结果 —— 对应 douyin_verify_log.result:0成功 1失败
     */
    public enum DOUYIN_VERIFY_LOG_RESULT {
        SUCCESS(0, "成功", "操作成功"),
        FAIL(1, "失败", "操作失败"),
        ;
        String name;
        Integer key;
        String info;
        DOUYIN_VERIFY_LOG_RESULT(Integer key, String name, String info) {
            this.name = name;
            this.key = key;
            this.info = info;
        }
        public String getName() {
            return name;
        }
        public Integer getKey() {
            return key;
        }
        public String getInfo() {
            return info;
        }
    }
    /**
     * 抖音核销记录核销状态 —— 对应 douyin_verify_record.verify_status:0成功 1失败
     */
    public enum DOUYIN_VERIFY_STATUS {
        SUCCESS(0, "核销成功", "核销成功"),
        FAIL(1, "核销失败", "核销失败"),
        ;
        String name;
        Integer key;
        String info;
        DOUYIN_VERIFY_STATUS(Integer key, String name, String info) {
            this.name = name;
            this.key = key;
            this.info = info;
        }
        public String getName() {
            return name;
        }
        public Integer getKey() {
            return key;
        }
        public String getInfo() {
            return info;
        }
    }
    /**
     * 抖音核销记录撤销状态 —— 对应 douyin_verify_record.cancel_status:0未撤销 1已撤销
     */
    public enum DOUYIN_VERIFY_CANCEL_STATUS {
        NOT_CANCEL(0, "未撤销", "未撤销"),
        DONE(1, "已撤销", "已撤销"),
        ;
        String name;
        Integer key;
        String info;
        DOUYIN_VERIFY_CANCEL_STATUS(Integer key, String name, String info) {
            this.name = name;
            this.key = key;
            this.info = info;
        }
        public String getName() {
            return name;
        }
        public Integer getKey() {
            return key;
        }
        public String getInfo() {
            return info;
        }
    }
    public static final String FREE_RENT_TIME ="FREE_RENT_TIME" ;
    public static final String LOW_VOLTAGE ="LOW_VOLTAGE" ;
    public static final String ACCESS_TOKEN ="ACCESS_TOKEN" ;
@@ -55,6 +179,7 @@
    public static final String HEART_TIME_EXPIRE_TIME ="HEART_TIME_EXPIRE_TIME" ;
    public static final String PARK_LAT_LNG_LIST = "PARK_LAT_LNG_LIST";
    public static final String LOW_BIKE_VOLTAGE ="LOW_BIKE_VOLTAGE" ;
    public static final String OBLINE_HEART_TIME_LIMIT ="OBLINE_HEART_TIME_LIMIT" ;
    public static final String EBIKE_PREFIX ="ebike-" ;
    public static String REDIS_DEBUG_STR="test_";
    public static final String AD = "AD";
@@ -126,7 +251,7 @@
        PLATFORM_REFUND(3,"平台退款", "平台退款"),
        DISCOUNT(4,"平台套餐", "平台套餐")
        DISCOUNT(4,"套餐购买", "套餐购买")
        ;
        String name;
@@ -207,12 +332,17 @@
        public static final String LEASE_NOTICE_URL = "LEASE_NOTICE_URL";
        //押金
        public static final String RENT_DEPOSIT = "RENT_DEPOSIT";
        //电车临停自动关锁时长(分钟)
        public static final String PAUSE_AUTO_CLOSE_TIME = "PAUSE_AUTO_CLOSE_TIME";
        //温馨提示
        public static final String TIPS = "TIPS";
        //温馨提示
        public static final String RENT_NOTICE = "RENT_NOTICE";
        //小程序停止服务提示
        public static final String STOP_SERVE_TIPS = "STOP_SERVE_TIPS";
        //抖音券兑换说明(小程序首页展示,提示用户抖音券兑换规则)
        public static final String DOUYIN_EXCHANGE_TIPS = "DOUYIN_EXCHANGE_TIPS";
        //小程序是否停止服务 0否 1是
        public static final String IS_STOP_SERVE = "IS_STOP_SERVE";
        //小程序停止开始时间