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 ConfigUnitDivisionTemplateRespVO {

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

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

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

    @Schema(description = "节点类型：division/boq")
    private String nodeType;

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

    @Schema(description = "名称")
    private String name;

    @Schema(description = "单位")
    private String unit;

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

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

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

    @Schema(description = "费率")
    private java.math.BigDecimal rate;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "费用代号")
    private String costCode;

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

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