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

import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.util.Map;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 定额市场主材设备保存 Request VO
 * 
 * @author yhy
 */
@Schema(description = "管理后台 - 定额市场主材设备保存 Request VO")
@Data
public class QuotaMarketMaterialSaveReqVO {

    @Schema(description = "主键ID（更新时必填）", example = "1")
    private Long id;

    @Schema(description = "定额基价ID", example = "1")
    private Long quotaItemId;

    @Schema(description = "资源项ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "资源项ID不能为空")
    private Long resourceItemId;

    @Schema(description = "定额消耗量", example = "350.00")
    private BigDecimal dosage;

    @Schema(description = "调整消耗量", example = "700.00")
    private BigDecimal adjustedDosage;

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

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