|
@@ -22,14 +22,9 @@ public class MetaVo
|
|
private String icon;
|
|
private String icon;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 设置为true,则不会被 <keep-alive>缓存
|
|
|
|
- */
|
|
|
|
- private boolean noCache;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 内链地址(http(s)://开头)
|
|
|
|
- */
|
|
|
|
- private String link;
|
|
|
|
|
|
+ * 前端用
|
|
|
|
+ */
|
|
|
|
+ private Boolean affix;
|
|
|
|
|
|
public MetaVo()
|
|
public MetaVo()
|
|
{
|
|
{
|
|
@@ -45,36 +40,24 @@ public class MetaVo
|
|
{
|
|
{
|
|
this.title = title;
|
|
this.title = title;
|
|
this.icon = icon;
|
|
this.icon = icon;
|
|
- this.noCache = noCache;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public MetaVo(String title, String icon, String link)
|
|
public MetaVo(String title, String icon, String link)
|
|
{
|
|
{
|
|
this.title = title;
|
|
this.title = title;
|
|
this.icon = icon;
|
|
this.icon = icon;
|
|
- this.link = link;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public MetaVo(String title, String icon, boolean noCache, String link)
|
|
public MetaVo(String title, String icon, boolean noCache, String link)
|
|
{
|
|
{
|
|
this.title = title;
|
|
this.title = title;
|
|
this.icon = icon;
|
|
this.icon = icon;
|
|
- this.noCache = noCache;
|
|
|
|
if (StringUtils.startsWithAny(link, Constants.HTTP, Constants.HTTPS))
|
|
if (StringUtils.startsWithAny(link, Constants.HTTP, Constants.HTTPS))
|
|
{
|
|
{
|
|
- this.link = link;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
|
|
- public boolean isNoCache()
|
|
|
|
- {
|
|
|
|
- return noCache;
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
- public void setNoCache(boolean noCache)
|
|
|
|
- {
|
|
|
|
- this.noCache = noCache;
|
|
|
|
- }
|
|
|
|
|
|
|
|
public String getTitle()
|
|
public String getTitle()
|
|
{
|
|
{
|
|
@@ -96,13 +79,15 @@ public class MetaVo
|
|
this.icon = icon;
|
|
this.icon = icon;
|
|
}
|
|
}
|
|
|
|
|
|
- public String getLink()
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ public Boolean getAffix()
|
|
{
|
|
{
|
|
- return link;
|
|
|
|
|
|
+ return affix;
|
|
}
|
|
}
|
|
|
|
|
|
- public void setLink(String link)
|
|
|
|
|
|
+ public void setAffix(boolean affix)
|
|
{
|
|
{
|
|
- this.link = link;
|
|
|
|
|
|
+ this.affix = affix;
|
|
}
|
|
}
|
|
}
|
|
}
|