package com.zxdmy.excite.system.entity.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.List;

@Data
public class DepartmentTreeDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String title;
    private String departmentName;
    private Integer departmentSort;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long departmentParentId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long companyId;
    private List<DepartmentTreeDTO> children;
    private Boolean spread = true; // Layui树节点是否展开
}
