feat:(REQ-2545) 新版菜单树增加icon字段
This commit is contained in:
parent
b9f364a999
commit
b89f8c51b4
@ -50,6 +50,16 @@ public class TreePermissionResp implements IBaseTree<TreePermissionResp, Long> {
|
||||
/** 图标 **/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* 选中的图标
|
||||
*/
|
||||
private String activeIcon;
|
||||
|
||||
/**
|
||||
* 更多图标
|
||||
*/
|
||||
private String moreIcon;
|
||||
|
||||
/**
|
||||
* 上级资源ID
|
||||
*/
|
||||
|
||||
@ -14,6 +14,7 @@ import cn.axzo.thrones.client.saas.entity.servicepkg.ServicePkgDetailRes;
|
||||
import cn.axzo.tyr.client.common.enums.FeatureResourceAuthType;
|
||||
import cn.axzo.tyr.client.common.enums.FeatureResourceType;
|
||||
import cn.axzo.tyr.client.common.enums.RoleTypeEnum;
|
||||
import cn.axzo.tyr.client.model.base.FeatureResourceExtraDO;
|
||||
import cn.axzo.tyr.client.model.base.WorkspaceOUPair;
|
||||
import cn.axzo.tyr.client.model.enums.IdentityType;
|
||||
import cn.axzo.tyr.client.model.product.ProductFeatureRelationVO;
|
||||
@ -299,6 +300,11 @@ public class PermissionQueryServiceImpl implements PermissionQueryService {
|
||||
TreePermissionResp treePermissionResp = TreePermissionResp.builder().build();
|
||||
BeanUtils.copyProperties(e, treePermissionResp);
|
||||
treePermissionResp.setFeatureId(e.getId());
|
||||
FeatureResourceExtraDO extra = e.getExtra();
|
||||
if (Objects.nonNull(extra)) {
|
||||
treePermissionResp.setActiveIcon(extra.getActiveIcon());
|
||||
treePermissionResp.setMoreIcon(extra.getMoreIcon());
|
||||
}
|
||||
return treePermissionResp;
|
||||
})
|
||||
.collect(Collectors.toList());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user