skyouc
2024-12-21 c635d78b479510ebe2556a420948effcd30a0731
zy-asrs-wms/src/main/java/com/zy/asrs/wms/common/constant/Constants.java
@@ -1,93 +1,93 @@
package com.zy.asrs.wms.common.constant;
/**
 * 系统常量
 * 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 = "操作成功";
    /**
     * 默认失败信息
     */
    public static final String RESULT_ERROR_MSG = "操作失败";
    /**
     * 无权限错误码
     */
    public static final int UNAUTHORIZED_CODE = 403;
    /**
     * 无权限提示信息
     */
    public static final String UNAUTHORIZED_MSG = "没有访问权限";
    /**
     * 未认证错误码
     */
    public static final int UNAUTHENTICATED_CODE = 401;
    /**
     * 未认证提示信息
     */
    public static final String UNAUTHENTICATED_MSG = "请先登录";
    /**
     * 登录过期错误码
     */
    public static final int TOKEN_EXPIRED_CODE = 401;
    /**
     * 登录过期提示信息
     */
    public static final String TOKEN_EXPIRED_MSG = "登录已过期";
    /**
     * 非法token错误码
     */
    public static final int BAD_CREDENTIALS_CODE = 401;
    /**
     * 非法token提示信息
     */
    public static final String BAD_CREDENTIALS_MSG = "请退出重新登录";
    /**
     * 表示升序的值
     */
    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";
}
package com.zy.asrs.wms.common.constant;
/**
 * 系统常量
 * 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 = "操作成功";
    /**
     * 默认失败信息
     */
    public static final String RESULT_ERROR_MSG = "操作失败";
    /**
     * 无权限错误码
     */
    public static final int UNAUTHORIZED_CODE = 403;
    /**
     * 无权限提示信息
     */
    public static final String UNAUTHORIZED_MSG = "没有访问权限";
    /**
     * 未认证错误码
     */
    public static final int UNAUTHENTICATED_CODE = 401;
    /**
     * 未认证提示信息
     */
    public static final String UNAUTHENTICATED_MSG = "请先登录";
    /**
     * 登录过期错误码
     */
    public static final int TOKEN_EXPIRED_CODE = 401;
    /**
     * 登录过期提示信息
     */
    public static final String TOKEN_EXPIRED_MSG = "登录已过期";
    /**
     * 非法token错误码
     */
    public static final int BAD_CREDENTIALS_CODE = 401;
    /**
     * 非法token提示信息
     */
    public static final String BAD_CREDENTIALS_MSG = "请退出重新登录";
    /**
     * 表示升序的值
     */
    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";
}