skyouc
昨天 2938aa734a2cf0baf93fdced92ea21e37f187365
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
package com.vincent.rsf.server.common.constant;
 
import io.swagger.models.auth.In;
 
/**
 * 系统常量
 * Created by vincent on 2019-10-29 15:55
 */
public class Constants {
    /**
     * 默认成功码
     */
    public static final int RESULT_OK_CODE = 0;
 
    /**
     * 默认失败码
     */
    public static final int RESULT_ERROR_CODE = 1;
 
    /**
     * 默认成功信息
     */
    public static final String RESULT_OK_MSG = "Request success";
 
    /**
     * 默认失败信息
     */
    public static final String RESULT_ERROR_MSG = "Internal server error!";
 
    /**
     * 无权限错误码
     */
    public static final int UNAUTHORIZED_CODE = 403;
 
    /**
     * 无权限提示信息
     */
    public static final String UNAUTHORIZED_MSG = "No access right";
 
    /**
     * 未认证错误码
     */
    public static final int UNAUTHENTICATED_CODE = 401;
 
    /**
     * 未认证提示信息
     */
    public static final String UNAUTHENTICATED_MSG = "Please log in first";
 
    /**
     * 登录过期错误码
     */
    public static final int TOKEN_EXPIRED_CODE = 401;
 
    /**
     * 登录过期提示信息
     */
    public static final String TOKEN_EXPIRED_MSG = "Login expired";
 
    /**
     * 非法token错误码
     */
    public static final int BAD_CREDENTIALS_CODE = 401;
 
    /**
     * 非法token提示信息
     */
    public static final String BAD_CREDENTIALS_MSG = "Please log out and log in again";
 
    /**
     * 表示升序的值
     */
    public static final String ORDER_ASC_VALUE = "asc";
 
    /**
     * 表示降序的值
     */
    public static final String ORDER_DESC_VALUE = "desc";
 
    /**
     * token通过header传递的名称
     */
    public static final String TOKEN_HEADER_NAME = "Authorization";
 
    /**
     * token通过参数传递的名称
     */
    public static final String TOKEN_PARAM_NAME = "access_token";
 
    /**
     * token认证类型
     */
    public static final String TOKEN_TYPE = "Bearer";
 
    /**
     * 库存出库
     */
    public static final String TASK_TYPE_OUT_STOCK = "outStock";
 
    /**
     * 库存盘点出库
     */
    public static final String TASK_TYPE_OUT_CHECK = "check";
 
    /**
     * 单据出库
     */
    public static final String TASK_TYPE_ORDER_OUT_STOCK = "OrderOutStock";
 
    /**
     * 拣料出库
     */
    public static final String TASK_TYPE_OUT_PICK = "pick";
 
    /**
     * 排序默认值
     */
    public static final Integer TASK_SORT_DEFAULT_VALUE =  49;
 
    /**
     * 排序最大值
     */
    public static final Integer TASK_SORT_MAX_VALUE =  999;
 
    /**
     * 排序最小值
     */
    public static final Integer TASK_SORT_MIN_VALUE =  0;
 
}