jinlin
2024-02-23 1772fc5e211f9e9e0ab4cdc6c29b436aac178c2a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有,侵权必究!
 */
 
package com.zt.modules.sys.dto;
 
import com.zt.common.entity.TreeNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
 
/**
 * 用户部门树
 *
 * @author hehz
 * @since 1.0.0
 */
@Data
@ApiModel(value = "用户部门树")
public class UserTreeDto implements Serializable , TreeNode<UserTreeDto> {
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value = "Id")
    private Long id;
 
    @ApiModelProperty(value = "父Id")
    private Long pid;
 
    @ApiModelProperty(value = "名称")
    private String name;
 
    @ApiModelProperty(value = "节点类型 1:公司节点 2: 部门节点 3:用户节点")
    private int type;
 
    @ApiModelProperty(value = "子数据")
    private List<UserTreeDto> children = new ArrayList<>();
 
}