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

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

@Schema(description = "工料机目录树节点（树形结构）")
@Data
public class ResourceCatalogItemTreeNodeVO {

    @Schema(description = "节点ID", example = "1")
    private Long id;

    @Schema(description = "工料机机类树节点ID", example = "1")
    private Long categoryTreeId;

    @Schema(description = "条目编码", example = "01")
    private String code;

    @Schema(description = "条目名称", example = "材料")
    private String name;

    @Schema(description = "计量单位", example = "t")
    private String unit;

    @Schema(description = "层级路径", example = "[\"01\", \"0101\"]")
    private String[] path;

    @Schema(description = "排序", example = "1")
    private Integer sortOrder;

    @Schema(description = "扩展属性")
    private Map<String, Object> attributes;

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