shiro cookie优化,员工授权等其他
This commit is contained in:
@@ -9,21 +9,23 @@ public class AdminConst {
|
||||
/**
|
||||
* 超级管理员id
|
||||
*/
|
||||
public static Long ADMIN_ID = 1L;
|
||||
public static final Long ADMIN_ID = 1L;
|
||||
|
||||
/**
|
||||
* 超级管理员用户名
|
||||
*/
|
||||
public static String ADMIN_NAME = "admin";
|
||||
public static final String ADMIN_NAME = "admin";
|
||||
|
||||
/**
|
||||
* 超级管理员角色id
|
||||
*/
|
||||
public static Long ADMIN_ROLE_ID = 1L;
|
||||
public static final Long ADMIN_ROLE_ID = 1L;
|
||||
|
||||
/**
|
||||
* 超级管理员角色标识名称
|
||||
*/
|
||||
public static String ADMIN_ROLE_NAME = "admin";
|
||||
public static final String ADMIN_ROLE_NAME = "admin";
|
||||
|
||||
public static final Long ADMIN_PLATFORM_ID = 1L;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.cwhelp.common.constant;
|
||||
|
||||
/**
|
||||
* @author: yan.y
|
||||
* @Description:
|
||||
* @Date: Created in 1:12 2019/8/5
|
||||
*/
|
||||
public class RoleConst {
|
||||
|
||||
/**
|
||||
* 角色平台类型
|
||||
*/
|
||||
public static final String ROLE_PLATFORM_TYPE = "1";
|
||||
|
||||
/**
|
||||
* 角色普通类型
|
||||
*/
|
||||
public static final String ROLE_ORDINARY_TYPE = "2";
|
||||
}
|
||||
@@ -26,6 +26,8 @@ public enum ResultEnum implements ResultInterface {
|
||||
USER_NAME_PWD_NULL(405, "用户名和密码不能为空"),
|
||||
USER_CAPTCHA_ERROR(406, "验证码错误"),
|
||||
USER_PWD_STRENGTH_ERROR(407, "密码强度不够"),
|
||||
USER_PHONE_EXIST(408, "该用户手机号码已经存在"),
|
||||
USER_NOE_EXIST(409, "该用户不存在"),
|
||||
|
||||
/**
|
||||
* 平台
|
||||
|
||||
@@ -5,5 +5,5 @@ package com.cwhelp.common.exception.advice;
|
||||
* @author yan.y
|
||||
*/
|
||||
public interface ExceptionAdvice {
|
||||
public void run(RuntimeException e);
|
||||
void run(RuntimeException e);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ package com.cwhelp.common.exception.interfaces;
|
||||
*/
|
||||
public interface ResultInterface {
|
||||
|
||||
public Integer getCode();
|
||||
Integer getCode();
|
||||
|
||||
public String getMessage();
|
||||
String getMessage();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user