疯狂的狮子li
2022-09-02 17f0c20242c6ee3d35b9ee8f677d747ed012423c
ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java
@@ -1,6 +1,5 @@
package com.ruoyi.common.constant;
/**
 * 通用常量信息
 *
@@ -17,6 +16,11 @@
     * GBK 字符集
     */
    String GBK = "GBK";
    /**
     * www主域
     */
    String WWW = "www.";
    /**
     * http请求
@@ -59,93 +63,14 @@
    String LOGIN_FAIL = "Error";
    /**
     * 验证码 redis key
     */
    String CAPTCHA_CODE_KEY = "captcha_codes:";
    /**
     * 登录用户 redis key
     */
    String LOGIN_TOKEN_KEY = "login_tokens:";
    /**
     * 防重提交 redis key
     */
    String REPEAT_SUBMIT_KEY = "repeat_submit:";
    /**
     * 限流 redis key
     */
    String RATE_LIMIT_KEY = "rate_limit:";
    /**
     * 验证码有效期(分钟)
     */
    Integer CAPTCHA_EXPIRATION = 2;
    /**
     * 登陆错误 redis key
     */
    String LOGIN_ERROR = "login_error:";
    /**
     * 登录错误次数
     */
    Integer LOGIN_ERROR_NUMBER = 5;
    /**
     * 登录错误限制时间(分钟)
     */
    Integer LOGIN_ERROR_LIMIT_TIME = 10;
    /**
     * 令牌
     */
    String TOKEN = "token";
    /**
     * 令牌前缀
     */
    String TOKEN_PREFIX = "Bearer ";
    /**
     * 令牌前缀
     */
    String LOGIN_USER_KEY = "login_user_key";
    /**
     * 用户ID
     */
    String JWT_USERID = "userid";
    /**
     * 用户名称
     */
    String JWT_USERNAME = "sub";
    /**
     * 用户头像
     */
    String JWT_AVATAR = "avatar";
    /**
     * 创建时间
     */
    String JWT_CREATED = "created";
    /**
     * 用户权限
     */
    String JWT_AUTHORITIES = "authorities";
    /**
     * 参数管理 cache key
     */
    String SYS_CONFIG_KEY = "sys_config:";
    /**
     * 字典管理 cache key
     */
    String SYS_DICT_KEY = "sys_dict:";
}