package com.zt.plat.module.api.dto.unitconversion;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 批量单位转换请求 DTO
 * 用于Feign远程调用
 *
 * @author ZT
 */
@Schema(description = "RPC 服务 - 批量单位转换 Request DTO")
@Data
public class BatchUnitConvertReqDTO {

    @Schema(description = "转换项列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "转换项列表不能为空")
    private List<UnitConvertReqDTO> items;

    @Schema(description = "是否忽略错误(true:遇到错误继续执行, false:遇到错误立即停止)", example = "false")
    private Boolean ignoreErrors = false;
}
