基本完成
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
package cn.rensijin.cchs.constants;
|
||||
|
||||
/**
|
||||
* @description 系统常量类
|
||||
*/
|
||||
public class SystemConstants {
|
||||
|
||||
/**
|
||||
* APP端保存注册短信验证码key
|
||||
*/
|
||||
public static final String TOKEN_PHONE_KEY_REGISTER = "app_sms_code_register:";
|
||||
|
||||
/**
|
||||
* 令牌在Redis中保存时长
|
||||
*/
|
||||
public static final int TOKEN_REDIS_ALIVE_TIME = 2;
|
||||
|
||||
/**
|
||||
* APP端保存短信验证码key
|
||||
*/
|
||||
public static final String TOKEN_PHONE_KEY = "app_sms_code:";
|
||||
|
||||
/**
|
||||
* 登录时图片验证码存Redis的超时时间(单位:分钟)
|
||||
*/
|
||||
public final static int LOGIN_CAPTCHA_EXPIRATION = 2;
|
||||
|
||||
/**
|
||||
* 登录时图片验证码存Redis的key前缀
|
||||
*/
|
||||
public static final String CAPTCHA_CODE_KEY = "captcha_code:";
|
||||
|
||||
/**
|
||||
* 文件存储路径(项目跟路径下面的files文件夹)
|
||||
*/
|
||||
public static final String FILES_DIR = "/files/";
|
||||
|
||||
/**
|
||||
* APP用户登录 redis key
|
||||
*/
|
||||
public static final String LOGIN_TOKEN_KEY_APP = "login_app_tokens:";
|
||||
|
||||
//登录成功之后token超时时间(单位:分钟)
|
||||
public final static int LOGIN_TIME_OUT = 60;
|
||||
|
||||
//新用户注册的默认登录密码
|
||||
public final static String DEFAULT_USER_LOGIN_PWD = "123456";
|
||||
|
||||
//新用户注册的默认头像
|
||||
public final static String DEFAULT_USER_AVATAR = "https://easyjava.oss-cn-chengdu.aliyuncs.com/common/0161a7079e574da287dc182bdf756abc.jpg";
|
||||
}
|
||||
Reference in New Issue
Block a user