将当前管理员相关的信息、权限等接口,迁移到 Passport 模块,更加统一
This commit is contained in:
@@ -26,6 +26,10 @@ public class AdminDO extends BaseDO {
|
||||
* 真实名字
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
private String avatar;
|
||||
/**
|
||||
* 部门编号
|
||||
*
|
||||
|
||||
@@ -217,10 +217,11 @@ public class ResourceService {
|
||||
* @param resource 资源
|
||||
*/
|
||||
private void initResourceProperty(ResourceDO resource) {
|
||||
// 初始化资源为按钮类型时,无需 route 和 icon 属性
|
||||
// 资源为按钮类型时,无需 route、icon、view 属性,进行置空
|
||||
if (ResourceTypeEnum.BUTTON.getType().equals(resource.getType())) {
|
||||
resource.setRoute(null);
|
||||
resource.setIcon(null);
|
||||
resource.setView(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user