package com.product.mobile.core.entity;
|
|
import com.alibaba.druid.util.StringUtils;
|
import com.product.core.config.Global;
|
import com.product.core.entity.FieldSetEntity;
|
import com.product.mobile.core.config.MobileCoreConst;
|
|
/**
|
* @Author cheng
|
* @Date 2022/2/22 20:17
|
* @Desc 导航栏配置
|
*/
|
public class NavBarEntity {
|
/**
|
* 导航栏名称
|
*/
|
private String name;
|
/**
|
* route
|
*/
|
private String path;
|
/**
|
* 图标
|
*/
|
private String icon;
|
/**
|
* 配置uuid
|
*/
|
private String uuid;
|
/**
|
* 所属模块/类目
|
*/
|
private String moduleCategory;
|
|
private String routeName;
|
|
|
public NavBarEntity(FieldSetEntity fse) {
|
this.name = fse.getString(MobileCoreConst.NAV_BAR_NAME);
|
//这里的path 是 router name
|
this.path = fse.getString(MobileCoreConst.PATH);
|
this.icon = fse.getString(MobileCoreConst.NAV_BAR_IMG);
|
this.moduleCategory = fse.getString(MobileCoreConst.MODULE_CATEGORY);
|
this.uuid = fse.getString(MobileCoreConst.FUNCTION_UUID);
|
this.routeName = fse.getString(MobileCoreConst.ROUTER_NAME);
|
// if (icon != null && !"".equals(icon)) {
|
// this.icon = "/api/fileManager/get-static-file/v1?uuid=" + this.icon;
|
// } else {
|
// icon = null;
|
// }
|
}
|
|
public String getRouteName() {
|
return routeName;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getPath() {
|
return path;
|
}
|
|
public void setPath(String path) {
|
this.path = path;
|
}
|
|
public String getIcon() {
|
return icon;
|
}
|
|
public void setIcon(String icon) {
|
this.icon = icon;
|
}
|
|
public String getUuid() {
|
return uuid;
|
}
|
|
public void setUuid(String uuid) {
|
this.uuid = uuid;
|
}
|
|
public String getModuleCategory() {
|
return moduleCategory;
|
}
|
|
public void setModuleCategory(String moduleCategory) {
|
this.moduleCategory = moduleCategory;
|
}
|
}
|