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

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

/**
 * 编制模式树 Response VO
 */
@Schema(description = "工作台 - 编制模式树 Response VO")
@Data
public class WbCompileTreeRespVO {

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

    @Schema(description = "项目节点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long projectId;

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

    @Schema(description = "节点类型：root-根节点, item-单项, unit-单位工程", requiredMode = Schema.RequiredMode.REQUIRED, example = "item")
    private String nodeType;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "单项1")
    private String name;

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

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

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

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

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

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