package com.xiaoniu.subsystem.system.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @Author haoxuyang
 * @Date 2024/11/28 13:53
 */
@Data
@Schema(description = "单位树形结构响应参数VO")
public class UnitTreeNewListVO {

    /**
     * 单位id
     */
    @Schema(description = "单位id")
    private Long id;
    /**
     * 单位名称
     */
    @Schema(description = "单位名称")
    private String label;
    /**
     * 单位代码
     */
    @Schema(description = "单位代码")
    private String unitCode;
    /**
     * 父单位id
     */
    @Schema(description = "父单位id")
    private Long parentId;

    @Schema(description = "子单位集合")
    private List<UnitTreeNewListVO> children;

}
