huanghongfa
2020-12-11 beacd47b5a174b52602a7c4e4ee431aef4ab48b2
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
package com.panzhihua.common.constants;
 
/**
 * 通用常量信息
 * 
 * @author HUANGHONGFA
 */
public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";
 
    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";
 
    /**
     * http请求
     */
    public static final String HTTP = "http://";
 
    /**
     * https请求
     */
    public static final String HTTPS = "https://";
 
    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;
 
    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;
 
    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";
 
    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";
 
    /**
     * 注册
     */
    public static final String REGISTER = "Register";
 
    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";
 
    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";
 
    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";
 
    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";
 
    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";
 
    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";
 
    /**
     * 验证码有效期(分钟)
     */
    public static final long CAPTCHA_EXPIRATION = 2;
 
    /**
     * 令牌有效期(分钟)
     */
    public final static long TOKEN_EXPIRE = 720;
 
    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";
 
    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";
 
    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";
    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";
    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";
    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";
 
    public static final String AES_KEY="35^*M@dp$5xDB&P@";
}