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

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

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Map;

@Schema(description = "管理后台 - 信息价工料机信息 Response VO")
@Data
public class InfoPriceResourceRespVO {

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

    @Schema(description = "租户ID", example = "1")
    private Long tenantId;

    @Schema(description = "分类树节点ID", example = "1")
    private Long categoryTreeId;

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

    @Schema(description = "名称", example = "水泥")
    private String name;

    @Schema(description = "型号规格", example = "P.O 42.5")
    private String spec;

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

    @Schema(description = "除税编制价", example = "450.00")
    private BigDecimal priceTaxExcl;

    @Schema(description = "税率", example = "0.09")
    private BigDecimal taxRate;

    @Schema(description = "含税编制价", example = "490.50")
    private BigDecimal priceTaxIncl;

    @Schema(description = "图样（文件地址）", example = "http://example.com/drawing.pdf")
    private String drawingUrl;

    @Schema(description = "分类ID", example = "1")
    private Long categoryId;

    @Schema(description = "备注", example = "备注信息")
    private String remark;

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

    @Schema(description = "资源项ID（可选，关联标准库）", example = "1")
    private Long resourceItemId;

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

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

}
