dangsn
2024-06-07 7664ba49025a6c549885fc6019e4d3c1886f45a6
Source/plt-web/plt-web-parent/plt-web-base/src/main/java/com/vci/starter/web/constant/TokenKeyConstant.java
@@ -37,4 +37,38 @@
     */
    public static final String REQUEST_TIMESTAMP = "vciHttpStartRequestTime";
    /**
     * 用户许可在redis里的前缀
     */
    public static final String TOKEN_KEY_PREFIX_IN_REDIS = "jwt-token:";
    /**
     * 令牌秘钥
     */
    public static final String SECRET = "thisissecretforjwt";
    /**
     * JWT中的用户主键的Key
     */
    public static final String JWT_USER_KEY = "user_key";
    /**
     * JWT中token的key
     */
    public static final String JWT_TOKEN_KEY = "token_key";
    /**
     * JWT中用户账号的key
     */
    public static final String JWT_USER_CODE_KEY = "user_code_key";
    /**
     * JWT中用户名字key
     */
    public static final String JWT_USER_NAME_KEY = "user_name_key";
    /**
     * 缓存有效期,默认30(分钟)
     */
    public static final long EXPIRATION = 30;
}