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;

@Schema(description = "管理后台 - 统一取费子目工料机创建/更新 Request VO")
@Data
public class QuotaUnifiedFeeResourceSaveReqVO {

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

    @Schema(description = "关联子定额ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1001")
    @NotNull(message = "关联子定额ID不能为空")
    private Long unifiedFeeSettingId;

    @Schema(description = "关联工料机ID（yhy_resource_item）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2001")
    @NotNull(message = "关联工料机ID不能为空")
    private Long resourceItemId;

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

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

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

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