将当前管理员相关的信息、权限等接口,迁移到 Passport 模块,更加统一

This commit is contained in:
YunaiV
2020-07-12 15:06:58 +08:00
parent 74d05557e1
commit 2daea0060d
20 changed files with 277 additions and 245 deletions

View File

@@ -26,6 +26,10 @@ public class AdminDO extends BaseDO {
* 真实名字
*/
private String name;
/**
* 头像
*/
private String avatar;
/**
* 部门编号
*

View File

@@ -217,10 +217,11 @@ public class ResourceService {
* @param resource 资源
*/
private void initResourceProperty(ResourceDO resource) {
// 初始化资源为按钮类型时,无需 routeicon 属性
// 资源为按钮类型时,无需 routeicon、view 属性,进行置空
if (ResourceTypeEnum.BUTTON.getType().equals(resource.getType())) {
resource.setRoute(null);
resource.setIcon(null);
resource.setView(null);
}
}