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.sys.modular.menu.entity; |
|
26 |
|
|
27 |
import com.baomidou.mybatisplus.annotation.*; |
|
28 |
import lombok.Data; |
|
29 |
import lombok.EqualsAndHashCode; |
|
30 |
import vip.xiaonuo.core.pojo.base.entity.BaseEntity; |
|
31 |
import vip.xiaonuo.core.pojo.base.node.BaseTreeNode; |
|
32 |
|
|
33 |
import java.util.List; |
|
34 |
|
|
35 |
/** |
|
36 |
* 系统菜单表 |
|
37 |
* |
|
38 |
* @author xuyuxiang |
|
39 |
* @date 2020/3/11 11:20 |
|
40 |
*/ |
|
41 |
@EqualsAndHashCode(callSuper = true) |
|
42 |
@Data |
|
43 |
@TableName("sys_menu") |
|
44 |
public class SysMenu extends BaseEntity implements BaseTreeNode { |
|
45 |
|
|
46 |
/** |
|
47 |
* 主键 |
|
48 |
*/ |
|
49 |
@TableId(type = IdType.ASSIGN_ID) |
|
50 |
private Long id; |
|
51 |
|
|
52 |
/** |
|
53 |
* 父id |
|
54 |
*/ |
|
55 |
private Long pid; |
|
56 |
|
|
57 |
/** |
|
58 |
* 父ids |
|
59 |
*/ |
|
60 |
private String pids; |
|
61 |
|
|
62 |
/** |
|
63 |
* 名称 |
|
64 |
*/ |
|
65 |
private String name; |
|
66 |
|
|
67 |
/** |
|
68 |
* 编码 |
|
69 |
*/ |
|
70 |
private String code; |
|
71 |
|
|
72 |
/** |
|
73 |
* 菜单类型(字典 0目录 1菜单 2按钮) |
|
74 |
*/ |
|
75 |
private Integer type; |
|
76 |
|
|
77 |
/** |
|
78 |
* 图标 |
|
79 |
*/ |
|
80 |
private String icon; |
|
81 |
|
|
82 |
/** |
|
83 |
* 路由地址 |
|
84 |
*/ |
|
85 |
private String router; |
|
86 |
|
|
87 |
/** |
|
88 |
* 组件地址 |
|
89 |
*/ |
|
90 |
private String component; |
|
91 |
|
|
92 |
/** |
|
93 |
* 权限标识 |
|
94 |
*/ |
|
95 |
private String permission; |
|
96 |
|
|
97 |
/** |
|
98 |
* 应用分类(应用编码) |
|
99 |
*/ |
|
100 |
private String application; |
|
101 |
|
|
102 |
/** |
|
103 |
* 打开方式(字典 0无 1组件 2内链 3外链) |
|
104 |
*/ |
|
105 |
private Integer openType; |
|
106 |
|
|
107 |
/** |
|
108 |
* 是否可见(Y-是,N-否) |
|
109 |
*/ |
|
110 |
private String visible; |
|
111 |
|
|
112 |
/** |
|
113 |
* 内链地址 |
|
114 |
*/ |
|
115 |
private String link; |
|
116 |
|
|
117 |
/** |
|
118 |
* 重定向地址 |
|
119 |
*/ |
|
120 |
private String redirect; |
|
121 |
|
|
122 |
/** |
|
123 |
* 权重(字典 1系统权重 2业务权重) |
|
124 |
*/ |
|
125 |
private Integer weight; |
|
126 |
|
|
127 |
/** |
|
128 |
* 排序 |
|
129 |
*/ |
|
130 |
private Integer sort; |
|
131 |
|
|
132 |
/** |
|
133 |
* 备注 |
|
134 |
*/ |
|
135 |
@TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED) |
|
136 |
private String remark; |
|
137 |
|
|
138 |
/** |
|
139 |
* 状态(字典 0正常 1停用 2删除) |
|
140 |
*/ |
|
141 |
private Integer status; |
|
142 |
|
|
143 |
/** |
|
144 |
* 子节点(表中不存在,用于构造树) |
|
145 |
*/ |
|
146 |
@TableField(exist = false) |
|
147 |
private List children; |
|
148 |
|
|
149 |
@Override |
|
150 |
public void setChildren(List children) { |
|
151 |
this.children = children; |
|
152 |
} |
|
153 |
} |