package cn.hztech.sdk.model.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * 部门实体
 */
@Data
public class Department {

    @JsonProperty("id")
    private Long id;

    @JsonProperty("tenantId")
    private String tenantId;

    @JsonProperty("parentId")
    private Long parentId;

    @JsonProperty("fullName")
    private String fullName;

    @JsonProperty("deptName")
    private String deptName;

    @JsonProperty("ancestors")
    private String ancestors;

    @JsonProperty("leaderId")
    private String leaderId;

    @JsonProperty("deptCategory")
    private Integer deptCategory;

    @JsonProperty("sort")
    private Integer sort;

    @JsonProperty("remark")
    private String remark;

    @JsonProperty("status")
    private Integer status;

    @JsonProperty("isDeleted")
    private Integer isDeleted;

    @JsonProperty("hasChildren")
    private Boolean hasChildren;

    @JsonProperty("dataSource")
    private Integer dataSource;

    @JsonProperty("parentName")
    private String parentName;

    @JsonProperty("deptCategoryName")
    private String deptCategoryName;


    @JsonProperty("children")
    private List<Department> children;
}
