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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Builder;
import java.math.BigDecimal;

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

    @Schema(description = "源单位ID", example = "1")
    private Long srcUntId;

    @Schema(description = "源单位名称", example = "米")
    private String srcUntName;

    @Schema(description = "源单位符号", example = "m")
    private String srcUntSmb;

    @Schema(description = "目标单位ID", example = "2")
    private Long tgtUntId;

    @Schema(description = "目标单位名称", example = "千米")
    private String tgtUntName;

    @Schema(description = "目标单位符号", example = "km")
    private String tgtUntSmb;

    @Schema(description = "原始值", example = "1000")
    private BigDecimal originalValue;

    @Schema(description = "转换后的值", example = "1")
    private BigDecimal convertedValue;

    @Schema(description = "转换因子", example = "0.001")
    private BigDecimal factor;

    @Schema(description = "转换公式", example = "1000m = 1km")
    private String formula;

    @Schema(description = "转换策略", example = "DIRECT")
    private String strategy;
}
