inleft
2022-02-09 9bcb19959eeb9da9bde2561e7278f6d0a55eb151
commit | author | age
9bcb19 1 /*
I 2 Copyright [2020] [https://www.xiaonuo.vip]
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8   http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
17
18 1.请不要删除和修改根目录下的LICENSE文件。
19 2.请不要删除和修改Snowy源码头部的版权声明。
20 3.请保留源码和相关描述文件的项目出处,作者声明等。
21 4.分发源码时候,请注明软件出处 https://gitee.com/xiaonuobase/snowy
22 5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/xiaonuobase/snowy
23 6.若您的项目无法满足以上几点,可申请商业授权,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
24  */
25 package vip.xiaonuo.core.pojo.node;
26
27 import lombok.Data;
28
29 /**
30  * 登录菜单
31  *
32  * @author yubaoshan
33  * @date 2020/4/17 17:35
34  */
35 @Data
36 public class LoginMenuTreeNode {
37
38     /**
39      * id
40      */
41     private Long id;
42
43     /**
44      * 父id
45      */
46     private Long pid;
47
48     /**
49      * 路由名称, 必须设置,且不能重名
50      */
51     private String name;
52
53     /**
54      * 组件
55      */
56     private String component;
57
58     /**
59      * 重定向地址, 访问这个路由时, 自定进行重定向
60      */
61     private String redirect;
62
63     /**
64      * 路由元信息(路由附带扩展信息)
65      */
66     private Meta meta;
67
68     /**
69      * 路径
70      */
71     private String path;
72
73     /**
74      * 控制路由和子路由是否显示在 sidebar
75      */
76     private boolean hidden;
77
78     /**
79      * 路由元信息内部类
80      */
81     @Data
82     public class Meta {
83
84         /**
85          * 路由标题, 用于显示面包屑, 页面标题 *推荐设置
86          */
87         public String title;
88
89         /**
90          * 图标
91          */
92         public String icon;
93
94         /**
95          * 是否可见
96          */
97         public boolean show;
98
99         /**
100          * 如需外部打开,增加:_blank
101          */
102         public String target;
103
104         /**
105          * 内链打开http链接
106          */
107         public String link;
108
109     }
110
111 }