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

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

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

/**
 * 清单配置目录树 Response VO
 *
 * @author yhy
 */
@Schema(description = "管理后台 - 清单配置目录树 Response VO")
@Data
public class BoqCatalogItemRespVO {

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

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

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

    @Schema(description = "名称", example = "广东")
    private String name;

    @Schema(description = "节点类型", example = "province")
    private String nodeType;

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

    @Schema(description = "绑定的定额基价节点ID", example = "100")
    private Long quotaCatalogItemId;

    @Schema(description = "专业绑定锁定标识", example = "false")
    private Boolean specialtyLocked;

    @Schema(description = "树路径")
    private String[] path;

    @Schema(description = "层级", example = "1")
    private Integer level;

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

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

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

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