xuhy
2026-02-14 894bd9fe15de8034d55643bee7184e94d73be68c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
package com.xiaopeng.common.core.constant;
 
/**
 * 缓存常量信息
 * 
 * @author xiaopeng
 */
public class CacheConstants
{
    /**
     * 缓存有效期,默认720(分钟)
     */
    public final static long EXPIRATION = 720;
    public final static long EXPIRATION_APPLET = 365 * 24 * 60;
 
    /**
     * 缓存刷新时间,默认120(分钟)
     */
    public final static long REFRESH_TIME = 120;
 
    /**
     * 密码最大错误次数
     */
    public final static int PASSWORD_MAX_RETRY_COUNT = 5;
 
    /**
     * 密码锁定时间,默认10(分钟)
     */
    public final static long PASSWORD_LOCK_TIME = 10;
 
    /**
     * 权限缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";
 
    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";
 
    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";
 
    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";
 
    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";
 
    /**
     * 登录IP黑名单 cache key
     */
    public static final String SYS_LOGIN_BLACKIPLIST = SYS_CONFIG_KEY + "sys.login.blackIPList";
 
 
    /**
     * 客服电话
     */
    public static final String CUSTOMER_SERVICE_PHONE = "CUSTOMER_SERVICE_PHONE";
 
    /**
     * 最大下单距离
     */
    public static final String ORDER_DISTANCE = "ORDER_DISTANCE";
 
    /**
     * 起终点最小距离
     */
    public static final String MIN_ORDER_DISTANCE ="MIN_ORDER_DISTANCE";
 
    /**
     * 省市区信息
     */
    public static final String XP_REGION = "XP_REGION";
 
    /**
     * 市区信息
     */
    public static final String XP_REGION_CITY = "XP_REGION_CITY";
 
    /**
     * 省市区级联树
     */
    public static final String XP_REGION_CASCADER = "XP_REGION_CASCADER";
 
 
    /**
     * 节假日
     */
    public static final String IS_HOLIDAY= "isHoliday_";
 
    /**
     * 当天是工作日还是节假日
     */
    public static final String IS_DAY= "isDay_";
 
    /**
     * 编号开头
     */
    public static final String ORD = "ord_";
 
    /**
     * 队列编号
     */
    public static final String QUEUE_POINT_ID = "QUEUE_POINT_ID";
 
    /**
     * 最大推单距离
     */
    public static final String MAX_PUSH_DISTANCE = "MAX_PUSH_DISTANCE";
 
 
    /**
     * 附近点位距离
     */
    public static final String NEAR_POINT_DISTANCE = "NEAR_POINT_DISTANCE";
    /**
     * 订单车辆位置
     */
    public static final String ORDER_OLD_LOCATION = "order_old_location:";
    /**
     * 订单车辆轨迹
     */
    public static final String ORDER_ROUTE = "order_route:";
    /**
     * 订单车辆轨迹,禁止用于其他用处
     */
    public static final String ORDER_ROUTE_CAPTURE = "order_route_capture:";
    /**
     * 车辆挡位
     */
    public static final String GEAR_LEVEL = "gear_level:";
}