角色管理新增分配用户功能

This commit is contained in:
RuoYi
2021-07-06 14:02:37 +08:00
parent 3d47ec2e73
commit 0b0da91139
14 changed files with 693 additions and 20 deletions

View File

@@ -91,6 +91,9 @@ public class SysUser extends BaseEntity
/** 岗位组 */
private Long[] postIds;
/** 角色ID */
private Long roleId;
public SysUser()
{
@@ -297,7 +300,16 @@ public class SysUser extends BaseEntity
{
this.postIds = postIds;
}
public Long getRoleId()
{
return roleId;
}
public void setRoleId(Long roleId)
{
this.roleId = roleId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)