Commit b0d9b1d3 authored by WeiWei's avatar WeiWei

优化代码

parent 6fd38535
package cn.quantgroup.cashloanflowboss.api.role.entity;
import cn.quantgroup.cashloanflowboss.component.security.Authority;
import cn.quantgroup.cashloanflowboss.core.persistence.Primary;
import lombok.Data;
......@@ -29,6 +28,6 @@ public class Role extends Primary {
/**
* 授权列表
*/
private List<Authority> authorities;
private List<Permission> permissions;
}
......@@ -27,11 +27,11 @@ public enum ApplicationStatus implements Status<ApplicationStatus> {
INVALID_AUTHORITY(501001, "无效的授权"),
INVALID_USER(501001, "无效的用户"),
INVALID_USER(501002, "无效的用户"),
DISABLED_USER(501002, "用户已被禁用"),
DISABLED_USER(501003, "用户已被禁用"),
USERNAME_OR_PASSWORD_ERROR(501003, "用户名或密码错误");
USERNAME_OR_PASSWORD_ERROR(501004, "用户名或密码错误");
private int code;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment