123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- package com.boman.domain.constant;
- import java.util.HashMap;
- /**
- * 通用常量信息
- *
- * @author ruoyi
- */
- public class Constants
- {
- /**
- * UTF-8 字符集
- */
- public static final String UTF8 = "UTF-8";
- /**
- * GBK 字符集
- */
- public static final String GBK = "GBK";
- /**
- * http请求
- */
- public static final String HTTP = "http://";
- /**
- * https请求
- */
- public static final String HTTPS = "https://";
- /**
- * 成功标记
- */
- public static final Integer SUCCESS = 200;
- /**
- * 授权成功
- */
- public static final Integer EMPOWER = 201;
- /**
- * 登录状态失效
- */
- public static final Integer LOGIN_EXPIRE = 401;
- /**
- * 失败标记
- */
- public static final Integer FAIL = 500;
- /**
- * 登录成功
- */
- public static final String LOGIN_SUCCESS = "Success";
- /**
- * 15天内尝试登录
- */
- public static final String LOGIN_OUT_TIME = "login_out_time";
- /**
- * 扫码登录成功
- */
- public static final String LOGIN_SUCCESS_APP = "login_success:";
- /**
- * 注销
- */
- public static final String LOGOUT = "Logout";
- /**
- * 注册
- */
- public static final String REGISTER = "Register";
- /**
- * 登录失败
- */
- public static final String LOGIN_FAIL = "Error";
- /**
- * 当前记录起始索引
- */
- public static final String PAGE_NUM = "pageNum";
- /**
- * 每页显示记录数
- */
- public static final String PAGE_SIZE = "pageSize";
- /**
- * 排序列
- */
- public static final String ORDER_BY_COLUMN = "orderByColumn";
- /**
- * 排序的方向 "desc" 或者 "asc".
- */
- public static final String IS_ASC = "isAsc";
- /**
- * 验证码 redis key
- */
- public static final String CAPTCHA_CODE_KEY = "captcha_codes:";
- /**
- * 验证码有效期(分钟)
- */
- public static final long CAPTCHA_EXPIRATION = 2;
- /**
- * 令牌有效期(分钟)
- */
- public final static long TOKEN_EXPIRE = 120;
- /**
- * 参数管理 cache key
- */
- public static final String SYS_CONFIG_KEY = "sys_config:";
- /**
- * 字典管理 cache key
- */
- public static final String SYS_DICT_KEY = "sys_dict:";
- /**
- * 资源映射路径 前缀
- */
- public static final String RESOURCE_PREFIX = "/profile";
- public static final String[] MENU_NAME = new String[]{"新增", "查看","编辑","删除","提交","反提交","导入","导出"};
- }
|