package com.sckw.system.model.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;

/**
 * 地磅过磅数据上报请求参数
 * @author PC
 */
@Data
@Schema(description = "地磅过磅数据上报请求参数")
public class WeighbridgePushRequest {

    /**
     * 车牌号
     */
    @NotBlank(message = "车牌号不能为空")
    @Schema(description = "车牌号", example = "川A1234")
    private String licensePlate;

    /**
     * 地磅编号
     */
    @NotBlank(message = "地磅编号不能为空")
    @Schema(description = "地磅编号", example = "10100111")
    private String weighbridgeCode;

    /**
     * 称重重量（吨）
     */
    @NotNull(message = "称重重量不能为空")
    @Schema(description = "称重重量(吨)", example = "34.5")
    private BigDecimal grossWeight;

    /**
     * 时间戳（支持秒或毫秒）
     */
    @NotNull(message = "时间戳不能为空")
    @Schema(description = "时间戳(秒或毫秒)", example = "1745483981")
    private Long timestamp;

    /**
     * 处理标签，用于指定处理方向
     */
    @Schema(description = "处理标签", example = "kll")
    private String tag;

    /**
     * 车辆图片
     */
    @Schema(description = "车辆图片数组")
    private MultipartFile[] images;
}
