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.LocalDate;
import java.time.LocalDateTime;
import java.util.Map;

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

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

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

    @Schema(description = "工料机信息ID", example = "1")
    private Long resourceId;

    @Schema(description = "开始时间", example = "2024-01-01")
    private LocalDate startTime;

    @Schema(description = "结束时间", example = "2024-01-31")
    private LocalDate endTime;

    @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 = "{}")
    private Map<String, Object> attributes;

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

}
