package top.continew.admin.system.model.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.continew.admin.common.enums.DisEnableStatusEnum;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 部门信息
 *
 * @author Charles7c
 * @since 2023/1/22 13:53
 */
@Data
@Schema(description = "部门信息")
public class DeptChildResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * ID
     */
    @Schema(description = " ID", example = "2")
    private Long id;
    private Long key;

    /**
     * 名称
     */
    @Schema(description = "名称", example = "测试部")
    private String title;
    /**
     * 数据库名称
     */
    @Schema(description = "数据库名称", example = "数据库名称")
    private String dbName;
    /**
     * 祖级列表
     */
    private String ancestors;
    /**
     * 上级部门 ID
     */
    @Schema(description = "上级部门 ID", example = "2")
    private Long parentId;

    /**
     * 状态
     */
    @Schema(description = "状态", example = "1")
    private DisEnableStatusEnum status;

    /**
     * 排序
     */
    @Schema(description = "排序", example = "3")
    private Integer sort;

    /**
     * 是否为系统内置数据
     */
    @Schema(description = "是否为系统内置数据", example = "false")
    private Boolean isSystem;

    /**
     * 描述
     */
    @Schema(description = "描述", example = "测试部描述信息")
    private String description;

    private List<DeptChildResp> children;
    /**
     * 老师信息
     */
    private List<UserTreeResp> teacherChildren;

}
