| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import lombok.*; |
| | | import cn.hutool.core.lang.Validator; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | |
| | | */ |
| | | private boolean noCache; |
| | | |
| | | /** |
| | | * 内链地址(http(s)://开头) |
| | | */ |
| | | private String link; |
| | | |
| | | public MetaVo(String title, String icon) { |
| | | this.title = title; |
| | | this.icon = icon; |
| | |
| | | this.noCache = noCache; |
| | | } |
| | | |
| | | public MetaVo(String title, String icon, String link) { |
| | | this.title = title; |
| | | this.icon = icon; |
| | | this.link = link; |
| | | } |
| | | |
| | | public MetaVo(String title, String icon, boolean noCache, String link) { |
| | | this.title = title; |
| | | this.icon = icon; |
| | | this.noCache = noCache; |
| | | if (Validator.isUrl(link)) { |
| | | this.link = link; |
| | | } |
| | | } |
| | | |
| | | } |