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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
| package com.jilongda.common.basic;
|
|
| /**
| * @author xiaochen
| * @ClassName constant
| * @Description
| * @date 2020-08-20 17:19
| */
|
| public class Constant {
| public static final int SUCCESS = 200;
|
| public static final int FAIL = 0;
| /**
| * 存储验证码时长
| */
| public static final Integer REDIS_EXPIRE = 15 * 60 * 1000;
| /**
| * 商品唯一编号索引
| */
| public static final String PRODUCT_NUMBER_UNI = "PRODUCT_NUMBER_UNI";
| /**
| * 会员手机号唯一索引
| */
| public static final String PHONE_UNI = "PHONE_UNI";
| /**
| * 门店唯一编号索引
| */
| public static final String SHOP_NUMBER_UNI = "SHOP_NUMBER_UNI";
| /**
| * 门店系统生成编号唯一索引
| */
| public static final String SHOP_OWN_NUMBER_UNI = "SHOP_OWN_NUMBER_UNI";
| /**
| * 模板消息发送地址
| */
| public static final String TEMPLATE_URL = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=ACCESS_TOKEN";
| /**
| * 管理员
| */
| public static final String ADMIN = "admin";
| /**
| * 管理员
| */
| public static final String TRAIN = "train";
| /**
| * 默认密码
| */
| public static final String DEF_PASSWORD = "123456";
| /**
| * 默认的令牌请求头
| */
| public static final String DEF_TOKEN_HEADER = "Authorization";
| /**
| * 别名令牌请求头
| */
| public static final String ALIAS_TOKEN_HEADER = "token";
| /**
| * 分隔符
| */
| public static final String SEP_COMMA = ",";
| /**
| * 分隔符
| */
| public static final String SEP_LINE = "-";
| /**
| * 分隔符
| */
| public static final String SEP_BLANK = " ";
| /**
| * 分隔符
| */
| public static final String SEP_COLON = ":";
| /**
| * LocalDateTime分隔符
| */
| public static final String SEP_T = "T";
| /**
| * . 分隔符
| */
| public static final String SEP_DOT = ".";
| /**
| * 时间格式化
| */
| public static final String DATE_FORMATTER_TIME = "yyyy-MM-dd HH:mm:ss";
| public static final String DATE_FORMATTER_DATE = "yyyy-MM-dd";
| public static final String DATE_FORMATTER_DATE_HOUR = "yyyy-MM-dd HH";
| public static final String DATE_FORMATTER_MIN = "HH:mm";
| public static final String DATEFORMATTERTIME = "yyyyMMddHHmmss";
| /**
| * 流水号定义
| */
| public static final String DATESTREAMCODE = "yyyyMMdd";
| public static final String DATETIMESTREAMCODE = "yyyyMMddHHmm";
| /**
| * 安全框架不需要身份认证的请求
| */
| public static final String[] AUTH_WHITELIST = {
| "/"
| , "/api/v1/"
| , "/druid/**"
| , "/druid/**"
| // , "/**" //开发时关闭身份认证
| , "/files/**"
| , "/login"
| , "/wx/wxLoginByCodeH5" //微信h5登录
| , "/sales-product/import-template" // 商品导入模板下载
| , "/sec-user/import-template" // 用户导入模板下载
| , "/sales-shop/import-template" // 门店导入模板下载
| , "/sales-personnel-structure/import-template" // 岗位导入模板下载
| , "/sales-tier-post/import-template" // 层级岗位导入模板
| , "/sales-tier-post/export/post-list" // 导出层级岗位列表
| , "/train_butt_joint/getUserList" // 查询用户列表及岗位与层级信息
| , "/logout"
| , "/cpe/**"//当前H5用户端不采用security
| , "/sales-report/**"//报表目前不做权限校验
| , "/sales-report/**"//报表目前不做权限校验
| , "/code/login"
| , "/sendMsg"
| };
| public static final String[] APPLET_AUTH_WHITELIST = {
| "/"
| , "/api/v1/"
| , "/druid/**"
| , "/druid/**"
| // , "/**" //开发时关闭身份认证
| , "/files/**"
| , "/login"
| , "/wx/wxLoginByCodeH5" //微信h5登录
| , "/logout"
| , "/cpe/**"
| , "/code/login"
| , "/sendCode" //当前H5用户端不采用security
| ,"/pageResetPassword"
| ,"/openIdByJsCode"
| ,"/t-goods/getConfigById"
| ,"/sendPassCode"
| ,"/t-store/pageList"
| };
| /**
| * 文档相关资源路径
| */
| public static final String[] DOC_LIST =
| {"/js/**",
| "/css/**",
| "/static/**",
| "/assets/**",
| "/web/**",
| "/web/css/**",
| "/web/js/**",
| "/web/image/**",
| "/webass/**",
| "/iconfont/**",
| "/RFIDR/**",
| "/tinymce/**",
| "/file/**",
| "/img/**",
| "/images/**",
| "/fonts/**", "/index.html",
| "/favicon.ico", "/v3/**", "/v2/**",
| "/error", "/swagger**/**", "/configuration/ui",
| "/configuration/security", "/webjars/**", "/doc**/**"
| };
| /**
| * 文档相关资源路径
| */
| public static final String[] DOC_OPTOMETRIST_LIST =
| {"/js/**",
| "/css/**",
| "/static/**",
| "/assets/**",
| "/web/**",
| "/web/css/**",
| "/web/js/**",
| "/web/image/**",
| "/webass/**",
| "/iconfont/**",
| "/RFIDR/**",
| "/tinymce/**",
| "/file/**",
| "/img/**",
| "/images/**",
| "/fonts/**", "/index.html",
| "/favicon.ico", "/v3/**", "/v2/**",
| "/error", "/swagger**/**", "/configuration/ui",
| "/configuration/security", "/webjars/**", "/doc**/**"
| };
| public static final String[] DO_FILTER_LIST =
| {
| "/js/",
| "/css/",
| "/static/",
| "/webass/",
| "/iconfont/",
| "/RFIDR/",
| "/tinymce/",
| "/img/",
| "/images/",
| "/fonts/", "/index.html",
| "/favicon.ico", "/v3/", "/v2/",
| "/error", "/swagger", "/configuration/ui",
| "/configuration/security", "/webjars/", "/doc/", "/api/v1/", "/druid/"
| , "/druid/"
| , "/doc"
| , "/app/doc"
| , "/files/"
| , "/login"
| , "/logout"
| , "/banner"
| , "/activity"
| , "/topic"
| , "/member-info"
| };
| /**
| * 门店导入时redis存储的key
| */
| public static final String REDIS_SHOP_KEY = "EXPORT_SHOP_KEY";
| /**
| * JWT-token 在 缓存中 中保存的key前缀
| */
| public static String JWT_TOKEN_KEY_PREFIX = ":security:jwt:token:";
| /**
| * JWT-refresh-token 在 缓存中 中保存的key前缀
| */
| public static String JWT_REFRESH_TOKEN_KEY_PREFIX = ":security:jwt:refresh-token:";
|
| }
|
|