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

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

/**
 * 同步库分部分项树响应 VO
 *
 * @author yhy
 */
@Schema(description = "同步库分部分项树响应")
@Data
public class SyncLibraryDivisionRespVO {

    @Schema(description = "节点ID")
    private String id;

    @Schema(description = "同步库ID")
    private String syncLibraryId;

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

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

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

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

    @Schema(description = "项目特征")
    private String feature;

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

    @Schema(description = "工程量")
    private BigDecimal qty;

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

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

    @Schema(description = "定额工程量公式")
    private String quotaQtyFormula;

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

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

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

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