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

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

@Schema(description = "管理后台 - 单位转换 Request VO")
@Data
public class UnitConvertReqVO {

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

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

    @Schema(description = "待转换的值", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
    @NotNull(message = "待转换的值不能为空")
    private BigDecimal value;

    @Schema(description = "精度(小数位数)", example = "6")
    private Integer precision = 6;
}
