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

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

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Schema(description = "管理后台 - 信息价分类树 Response VO")
@Data
public class InfoPriceCategoryTreeRespVO {

    @Schema(description = "主键", example = "1")
    private Long id;

    @Schema(description = "租户ID", example = "1")
    private Long tenantId;

    @Schema(description = "信息价册ID", example = "1")
    private Long bookId;

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

    @Schema(description = "编码", example = "CAT001")
    private String code;

    @Schema(description = "名称", example = "土石方工程")
    private String name;

    @Schema(description = "节点类型：1-目录 2-内容", example = "1")
    private Integer nodeType;

    @Schema(description = "节点类型名称", example = "目录")
    private String nodeTypeName;

    @Schema(description = "树路径", example = "[\"1\",\"2\"]")
    private String[] path;

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

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

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

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

}
