提交 | 用户 | 时间
|
722af2
|
1 |
package com.dl.common.core.domain; |
X |
2 |
|
|
3 |
import com.baomidou.mybatisplus.annotation.TableField; |
|
4 |
import lombok.Data; |
|
5 |
import lombok.EqualsAndHashCode; |
|
6 |
|
|
7 |
import java.util.ArrayList; |
|
8 |
import java.util.List; |
|
9 |
|
|
10 |
/** |
|
11 |
* Tree基类 |
|
12 |
* |
|
13 |
* @author Lion Li |
|
14 |
*/ |
|
15 |
|
|
16 |
@Data |
|
17 |
@EqualsAndHashCode(callSuper = true) |
|
18 |
public class TreeEntity<T> extends BaseEntity { |
|
19 |
|
|
20 |
private static final long serialVersionUID = 1L; |
|
21 |
|
|
22 |
/** |
|
23 |
* 父菜单名称 |
|
24 |
*/ |
|
25 |
@TableField(exist = false) |
|
26 |
private String parentName; |
|
27 |
|
|
28 |
/** |
|
29 |
* 父菜单ID |
|
30 |
*/ |
|
31 |
private Long parentId; |
|
32 |
|
|
33 |
/** |
|
34 |
* 子部门 |
|
35 |
*/ |
|
36 |
@TableField(exist = false) |
|
37 |
private List<T> children = new ArrayList<>(); |
|
38 |
|
|
39 |
} |