package com.cf.imes.module.executor.controller.admin.assemblylist.vo;

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

import java.util.List;

/**
 * 装配清单 - 按名称汇总后的平铺部件。
 */
@Data
@Schema(description = "管理后台 - 装配清单按名称汇总的平铺部件")
public class AssemblyListComponentFlatRespVO {

    @Schema(description = "排序代表节点 ID（同名节点中层级最深、ID 最大的节点）")
    private Long id;

    @Schema(description = "部件名称")
    private String name;

    @Schema(description = "层级序号")
    private String level;

    @Schema(description = "同名部件数量")
    private Integer count;

    @Schema(description = "被汇总的原始部件 ID，按层级倒序、ID 倒序")
    private List<Long> componentIds;
}
