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

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

@Schema(description = "管理后台 - 标签页引用 Response VO")
@Data
public class ConfigUnitTabRefRespVO {

    @Schema(description = "引用ID")
    private Long id;

    @Schema(description = "关联 fields_majors 节点ID")
    private Long catalogItemId;

    @Schema(description = "标签页类型")
    private String tabType;

    @Schema(description = "引用的模板节点ID")
    private Long templateNodeId;

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

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

    // 关联的模板节点信息
    @Schema(description = "模板节点类型")
    private String nodeType;

    @Schema(description = "模板节点编码")
    private String code;

    @Schema(description = "模板节点名称")
    private String name;

    @Schema(description = "模板节点单位")
    private String unit;

    @Schema(description = "子节点列表（引用分部时包含其下的清单）")
    private List<ConfigUnitDivisionTemplateRespVO> children;
}
