2018-07-09 08:44:52 +08:00
|
|
|
package com.ruoyi.common.constant;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Shiro通用常量
|
|
|
|
*
|
|
|
|
* @author ruoyi
|
|
|
|
*/
|
2020-06-19 16:00:42 +08:00
|
|
|
public class ShiroConstants
|
2018-07-09 08:44:52 +08:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* 当前登录的用户
|
|
|
|
*/
|
|
|
|
public static final String CURRENT_USER = "currentUser";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 用户名
|
|
|
|
*/
|
|
|
|
public static final String CURRENT_USERNAME = "username";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 消息key
|
|
|
|
*/
|
2020-03-23 09:02:04 +08:00
|
|
|
public static final String MESSAGE = "message";
|
2018-07-09 08:44:52 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 错误key
|
|
|
|
*/
|
2020-03-23 09:02:04 +08:00
|
|
|
public static final String ERROR = "errorMsg";
|
2018-07-09 08:44:52 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 编码格式
|
|
|
|
*/
|
2020-03-23 09:02:04 +08:00
|
|
|
public static final String ENCODING = "UTF-8";
|
2018-07-09 08:44:52 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 当前在线会话
|
|
|
|
*/
|
2020-03-23 09:02:04 +08:00
|
|
|
public static final String ONLINE_SESSION = "online_session";
|
2018-07-09 08:44:52 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 验证码key
|
|
|
|
*/
|
|
|
|
public static final String CURRENT_CAPTCHA = "captcha";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 验证码开关
|
|
|
|
*/
|
2018-08-13 21:40:50 +08:00
|
|
|
public static final String CURRENT_ENABLED = "captchaEnabled";
|
2018-07-09 08:44:52 +08:00
|
|
|
|
|
|
|
/**
|
2019-05-28 17:44:46 +08:00
|
|
|
* 验证码类型
|
2018-07-09 08:44:52 +08:00
|
|
|
*/
|
|
|
|
public static final String CURRENT_TYPE = "captchaType";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 验证码
|
|
|
|
*/
|
|
|
|
public static final String CURRENT_VALIDATECODE = "validateCode";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 验证码错误
|
|
|
|
*/
|
|
|
|
public static final String CAPTCHA_ERROR = "captchaError";
|
2019-06-05 19:02:07 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 登录记录缓存
|
|
|
|
*/
|
|
|
|
public static final String LOGINRECORDCACHE = "loginRecordCache";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 系统活跃用户缓存
|
|
|
|
*/
|
|
|
|
public static final String SYS_USERCACHE = "sys-userCache";
|
2018-07-09 08:44:52 +08:00
|
|
|
}
|