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

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

import java.util.List;

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

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

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

}
