package com.yhy.module.core.controller.admin.workbench.vo;

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

/**
 * 工料机汇总树 Response VO
 *
 * @author yhy
 */
@Schema(description = "工作台 - 工料机汇总树 Response VO")
@Data
public class WbResourceSummaryTreeRespVO {

    @Schema(description = "节点ID", example = "root")
    private String id;

    @Schema(description = "节点名称", example = "工料机汇总")
    private String name;

    @Schema(description = "节点类型：root/category/bid_material", example = "root")
    private String nodeType;

    @Schema(description = "资源类型（类别节点时有值）", example = "material")
    private String resourceType;

    @Schema(description = "数量", example = "10")
    private Integer count;

    @Schema(description = "子节点")
    private List<WbResourceSummaryTreeRespVO> children;

    // 节点类型常量
    public static final String NODE_TYPE_ROOT = "root";
    public static final String NODE_TYPE_CATEGORY = "category";
    public static final String NODE_TYPE_BID_MATERIAL = "bid_material";

}
