package com.sckw.fleet.model.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zk
 * @desc 车辆信息导入
 * @date 2023/7/6 0006
 */
@Data
public class KwfTruckExcelImportDto implements Serializable {
    private static final long serialVersionUID = 370622351109421619L;

    /**
     * 车牌号
     */
    @ExcelProperty(index = 0)
    @NotBlank(message = "车牌号不能为空!")
    @Size(max=8, message = "车牌号长度不能大于8个字符！")
    private String truckNo;

    /**
     * 标准荷载（净重）
     */
    @ExcelProperty(index = 1)
    @NotNull(message = "标准荷载不能为空!")
    private Double actualWeight;
}
