admin
2024-04-24 363457b34e0e4f26ffe51aa80ecb227bf7873308
提交 | 用户 | 时间
363457 1 package com.jcdm.system.domain.vo;
A 2
3 import com.jcdm.common.utils.StringUtils;
4
5 /**
6  * 路由显示信息
7  * 
8  * @author jc
9  */
10 public class MetaVo
11 {
12     /**
13      * 设置该路由在侧边栏和面包屑中展示的名字
14      */
15     private String title;
16
17     /**
18      * 设置该路由的图标,对应路径src/assets/icons/svg
19      */
20     private String icon;
21
22     /**
23      * 设置为true,则不会被 <keep-alive>缓存
24      */
25     private boolean noCache;
26
27     /**
28      * 内链地址(http(s)://开头)
29      */
30     private String link;
31
32     public MetaVo()
33     {
34     }
35
36     public MetaVo(String title, String icon)
37     {
38         this.title = title;
39         this.icon = icon;
40     }
41
42     public MetaVo(String title, String icon, boolean noCache)
43     {
44         this.title = title;
45         this.icon = icon;
46         this.noCache = noCache;
47     }
48
49     public MetaVo(String title, String icon, String link)
50     {
51         this.title = title;
52         this.icon = icon;
53         this.link = link;
54     }
55
56     public MetaVo(String title, String icon, boolean noCache, String link)
57     {
58         this.title = title;
59         this.icon = icon;
60         this.noCache = noCache;
61         if (StringUtils.ishttp(link))
62         {
63             this.link = link;
64         }
65     }
66
67     public boolean isNoCache()
68     {
69         return noCache;
70     }
71
72     public void setNoCache(boolean noCache)
73     {
74         this.noCache = noCache;
75     }
76
77     public String getTitle()
78     {
79         return title;
80     }
81
82     public void setTitle(String title)
83     {
84         this.title = title;
85     }
86
87     public String getIcon()
88     {
89         return icon;
90     }
91
92     public void setIcon(String icon)
93     {
94         this.icon = icon;
95     }
96
97     public String getLink()
98     {
99         return link;
100     }
101
102     public void setLink(String link)
103     {
104         this.link = link;
105     }
106 }