提交 | 用户 | 时间
|
fd2207
|
1 |
package com.jcdm.system.domain.vo; |
懒 |
2 |
|
|
3 |
import com.fasterxml.jackson.annotation.JsonInclude; |
|
4 |
import java.util.List; |
|
5 |
|
|
6 |
/** |
|
7 |
* 路由配置信息 |
|
8 |
* |
|
9 |
* @author jc |
|
10 |
*/ |
|
11 |
@JsonInclude(JsonInclude.Include.NON_EMPTY) |
|
12 |
public class RouterVo |
|
13 |
{ |
|
14 |
/** |
|
15 |
* 路由名字 |
|
16 |
*/ |
|
17 |
private String name; |
|
18 |
|
|
19 |
/** |
|
20 |
* 路由地址 |
|
21 |
*/ |
|
22 |
private String path; |
|
23 |
|
|
24 |
/** |
|
25 |
* 是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现 |
|
26 |
*/ |
|
27 |
private boolean hidden; |
|
28 |
|
|
29 |
/** |
|
30 |
* 重定向地址,当设置 noRedirect 的时候该路由在面包屑导航中不可被点击 |
|
31 |
*/ |
|
32 |
private String redirect; |
|
33 |
|
|
34 |
/** |
|
35 |
* 组件地址 |
|
36 |
*/ |
|
37 |
private String component; |
|
38 |
|
|
39 |
/** |
|
40 |
* 路由参数:如 {"id": 1, "name": "ry"} |
|
41 |
*/ |
|
42 |
private String query; |
|
43 |
|
|
44 |
/** |
|
45 |
* 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面 |
|
46 |
*/ |
|
47 |
private Boolean alwaysShow; |
|
48 |
|
|
49 |
/** |
|
50 |
* 其他元素 |
|
51 |
*/ |
|
52 |
private MetaVo meta; |
|
53 |
|
|
54 |
/** |
|
55 |
* 子路由 |
|
56 |
*/ |
|
57 |
private List<RouterVo> children; |
|
58 |
|
|
59 |
public String getName() |
|
60 |
{ |
|
61 |
return name; |
|
62 |
} |
|
63 |
|
|
64 |
public void setName(String name) |
|
65 |
{ |
|
66 |
this.name = name; |
|
67 |
} |
|
68 |
|
|
69 |
public String getPath() |
|
70 |
{ |
|
71 |
return path; |
|
72 |
} |
|
73 |
|
|
74 |
public void setPath(String path) |
|
75 |
{ |
|
76 |
this.path = path; |
|
77 |
} |
|
78 |
|
|
79 |
public boolean getHidden() |
|
80 |
{ |
|
81 |
return hidden; |
|
82 |
} |
|
83 |
|
|
84 |
public void setHidden(boolean hidden) |
|
85 |
{ |
|
86 |
this.hidden = hidden; |
|
87 |
} |
|
88 |
|
|
89 |
public String getRedirect() |
|
90 |
{ |
|
91 |
return redirect; |
|
92 |
} |
|
93 |
|
|
94 |
public void setRedirect(String redirect) |
|
95 |
{ |
|
96 |
this.redirect = redirect; |
|
97 |
} |
|
98 |
|
|
99 |
public String getComponent() |
|
100 |
{ |
|
101 |
return component; |
|
102 |
} |
|
103 |
|
|
104 |
public void setComponent(String component) |
|
105 |
{ |
|
106 |
this.component = component; |
|
107 |
} |
|
108 |
|
|
109 |
public String getQuery() |
|
110 |
{ |
|
111 |
return query; |
|
112 |
} |
|
113 |
|
|
114 |
public void setQuery(String query) |
|
115 |
{ |
|
116 |
this.query = query; |
|
117 |
} |
|
118 |
|
|
119 |
public Boolean getAlwaysShow() |
|
120 |
{ |
|
121 |
return alwaysShow; |
|
122 |
} |
|
123 |
|
|
124 |
public void setAlwaysShow(Boolean alwaysShow) |
|
125 |
{ |
|
126 |
this.alwaysShow = alwaysShow; |
|
127 |
} |
|
128 |
|
|
129 |
public MetaVo getMeta() |
|
130 |
{ |
|
131 |
return meta; |
|
132 |
} |
|
133 |
|
|
134 |
public void setMeta(MetaVo meta) |
|
135 |
{ |
|
136 |
this.meta = meta; |
|
137 |
} |
|
138 |
|
|
139 |
public List<RouterVo> getChildren() |
|
140 |
{ |
|
141 |
return children; |
|
142 |
} |
|
143 |
|
|
144 |
public void setChildren(List<RouterVo> children) |
|
145 |
{ |
|
146 |
this.children = children; |
|
147 |
} |
|
148 |
} |