package com.zt.plat.module.base.controller.admin.unitConversion.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 单位转换新增/修改 Request VO")
@Data
public class UnitConversionSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "339")
    private Long id;

    @Schema(description = "计量单位量ID(量纲ID)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "量纲ID不能为空")
    private Long untQtyId;

    @Schema(description = "源单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26239")
    @NotNull(message = "源单位ID不能为空")
    private Long srcUntId;

    @Schema(description = "目标单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25640")
    @NotNull(message = "目标单位ID不能为空")
    private Long tgtUntId;

    @Schema(description = "转换因子")
    private BigDecimal fctr;

    @Schema(description = "转换公式", requiredMode = Schema.RequiredMode.REQUIRED)
    private String fmu;

}