zhongrj
2023-08-08 7572552bcebd353050f95a1965526e2fadb31f67
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
package cn.gistack.system.user.sync.constant;
 
/**
 * @author wd
 */
public class CimsConstants {
 
    private CimsConstants(){}
 
    /**
     * 字段
     */
    public static final String PARAM_SIGN = "sign";
 
    public static final String PARAM_APPID = "appId";
 
    public static final String PARAM_SYNCDATA = "syncData";
 
    public static final String PARAM_TIMESTAMP = "timestamp";
 
    /**
     * 切面值
     */
    public static final String AOP_API_PUSH = "apiPush";
 
    /**
     * 数据源拉取
     */
    public static final String AOP_API_PULL = "apiPull";
 
    /**
     * 密钥长度
     */
    public static final int SECRET_KEY_LENGTH = 32;
 
    /**
     * 加密编码
     */
    public static final String SECRET_KEY_ENCODING = "UTF-8";
 
    /**
     * 数据有效时间
     */
    public static final int DATA_VALID_TIME = 60000;
 
    /**
     * 数字和字母的正则
     */
    public static final String SECRET_KEY_REGEX = "^[a-z0-9A-Z]+$";
 
    /**
     * 服务器协议
     */
    public static final String REQUEST_PROTOCOL_METHOD = "POST";
 
}