shikeying
2024-01-11 3b67e947e36133e2a40eb2737b15ea375e157ea0
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
package com.walker.web;
 
/**
 * 描述:
 * @author 时克英
 * @date 2020年6月29日 下午1:49:53
 */
 
public class Constants {
 
    public static final String API_PREFIX = "/api";
 
    public static final String TIP_TOKEN_FAILED = "authority not found!";
 
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //~ token 相关,2022-10-12
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
    public static final String TOKEN_NAME = "token";
 
    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";
 
    public static final String TOKEN_HEADER = "Authorization";
 
    /**
     * 刷新token,header属性名称
     * @date 2022-11-13
     */
    public static final String TOKEN_HEADER_REFRESH = "TokenRefresh";
 
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //~ WEB 相关,2022-10-12
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
    public static final String APPLICATION_JSON = "application/json;charset=UTF-8";
    public static final String APPLICATION_XML = "application/xml;charset=UTF-8";
    public static final String APPLICATION_WWW = "application/x-www-form-urlencoded";
    public static final String TEXT_XML = "text/xml;charset=UTF-8";
    public static final String TEXT_PLAIN = "text/plain;charset=UTF-8";
    public static final String FILE_APK = "application/vnd.android.package-archive";
 
    public static final int HTTP_SUCCESS = 200;
 
    public static final String HTTP_METHOD_GET = "GET";
    public static final String HTTP_METHOD_POST = "POST";
    public static final String HTTP_METHOD_PUT = "PUT";
    public static final String HTTP_METHOD_DELETE = "DELETE";
 
    /**
     * 中文GBK字符串常量。
     * @date 2023-01-05
     */
    public static final String CHARSET_GBK = "GBK";
 
    /**
     * 拦截包含: /list 等请求,加入分页信息,即:自动执行 this.preparePageSearch();
     * @date 2023-01-28
     */
    public static final String KEY_INTERCEPTOR_PAGE_LIST = "/list";
 
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //~ WEB SECURITY 相关,2022-11-03
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
    /**
     * 匿名角色,遇到后系统自动放过。
     * @date 2022-11-03
     */
    public static final String ROLE_ANONYMOUS = "ROLE_ANONYMOUS";
 
    /**
     * 空角色,意味着没有匹配到任何角色(没有权限)。
     * @date 2022-11-13
     */
    public static final String ROLE_EMPTY = "ROLE_EMPTY";
 
    /**
     * activiti7工作流强制使用的角色
     * @date 2023-03-21
     */
    public static final String ROLE_ACTIVITI_USER = "ROLE_ACTIVITI_USER";
 
}