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

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

import java.util.List;
import java.util.Map;

@Schema(description = "工料机机类树节点")
@Data
public class ResourceCategoryTreeNodeVO {

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

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

    @Schema(description = "节点编码", example = "GD-GMJ")
    private String code;

    @Schema(description = "节点名称", example = "广东工民建工料机")
    private String name;

    @Schema(description = "节点类型（region=地区, specialty=工料机专业）", example = "specialty")
    private String nodeType;

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

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

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