Browse Source
在通用模块domain类中创建导出角色权限Vo类,根据菜单、角色实体和ZTree节点树类创建 根据加载角色菜单列表树的后端接口的查询方法创建根据角色ID查询菜单后端方法:区分超级管理员和其他用户;超级管理员拥有全部权限,其他用户关联菜单表、用户表、角色表查询拥有的权限dev
liuxiaoxu
2 months ago
1 changed files with 67 additions and 0 deletions
@ -0,0 +1,67 @@ |
|||
package com.ruoyi.common.core.domain.entity.vo; |
|||
|
|||
|
|||
import com.ruoyi.common.annotation.Excel; |
|||
|
|||
//导出角色权限Vo类
|
|||
|
|||
public class ExportRoleMenuVo { |
|||
|
|||
/** 角色id */ |
|||
private Long roleId; |
|||
|
|||
/** 角色姓名 */ |
|||
@Excel(name = "角色姓名") |
|||
private String roleName; |
|||
|
|||
/** 角色权限字符串 */ |
|||
@Excel(name = "角色权限字符") |
|||
private String roleKey; |
|||
|
|||
/** 角色权限(对应节点标题) */ |
|||
@Excel(name = "角色权限") |
|||
private String title; |
|||
|
|||
public Long getRoleId() { |
|||
return roleId; |
|||
} |
|||
|
|||
public void setRoleId(Long roleId) { |
|||
this.roleId = roleId; |
|||
} |
|||
|
|||
public String getRoleName() { |
|||
return roleName; |
|||
} |
|||
|
|||
public void setRoleName(String roleName) { |
|||
this.roleName = roleName; |
|||
} |
|||
|
|||
public String getRoleKey() { |
|||
return roleKey; |
|||
} |
|||
|
|||
public void setRoleKey(String roleKey) { |
|||
this.roleKey = roleKey; |
|||
} |
|||
|
|||
|
|||
public String getTitle() { |
|||
return title; |
|||
} |
|||
|
|||
public void setTitle(String title) { |
|||
this.title = title; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return "ExportRoleMenuVo{" + |
|||
"roleId=" + roleId + |
|||
", roleName='" + roleName + '\'' + |
|||
", roleKey='" + roleKey + '\'' + |
|||
", title='" + title + '\'' + |
|||
'}'; |
|||
} |
|||
} |
Loading…
Reference in new issue