You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.2 KiB
Java
65 lines
1.2 KiB
Java
|
8 years ago
|
package com.ruoyi.common.constant;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Shiro通用常量
|
||
|
|
*
|
||
|
|
* @author ruoyi
|
||
|
|
*/
|
||
|
|
public interface ShiroConstants
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* 当前登录的用户
|
||
|
|
*/
|
||
|
|
public static final String CURRENT_USER = "currentUser";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 用户名
|
||
|
|
*/
|
||
|
|
public static final String CURRENT_USERNAME = "username";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 消息key
|
||
|
|
*/
|
||
|
|
public static String MESSAGE = "message";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 错误key
|
||
|
|
*/
|
||
|
|
public static String ERROR = "errorMsg";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 编码格式
|
||
|
|
*/
|
||
|
|
public static String ENCODING = "UTF-8";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 当前在线会话
|
||
|
|
*/
|
||
|
|
public String ONLINE_SESSION = "online_session";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 验证码key
|
||
|
|
*/
|
||
|
|
public static final String CURRENT_CAPTCHA = "captcha";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 验证码开关
|
||
|
|
*/
|
||
|
7 years ago
|
public static final String CURRENT_ENABLED = "captchaEnabled";
|
||
|
8 years ago
|
|
||
|
|
/**
|
||
|
|
* 验证码开关
|
||
|
|
*/
|
||
|
|
public static final String CURRENT_TYPE = "captchaType";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 验证码
|
||
|
|
*/
|
||
|
|
public static final String CURRENT_VALIDATECODE = "validateCode";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 验证码错误
|
||
|
|
*/
|
||
|
|
public static final String CAPTCHA_ERROR = "captchaError";
|
||
|
|
}
|