许鹏程
2024-10-18 08d025f05576294faca59fb3e2b2925dd60e8205
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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;
    }
}