package com.sckw.fleet.model.dto;

import com.sckw.core.model.page.PageRequest;
import com.sckw.core.web.request.PageReq;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author zk
 * @desc 车辆信息
 * @date 2023/7/12 0012
 */
@Data
public class SaveAssociatedTruckParam  implements Serializable {

    @Serial
    private static final long serialVersionUID = -183438702190878123L;

    /**
     * 司机id
     */
    @NotBlank(message = "司机id不能空！")
    private Long driverId;

    /**
     * 车辆信息
     */
    @NotNull(message = "车辆信息不能空！")
    private List<AssociatedTruckVO> associatedTruckVO;


    @Data
    public class AssociatedTruckVO{

        /**
         * 车辆号
         */
        @NotBlank(message = "车辆号不能空！")
        private String truckNo;

        /**
         * 轴数id
         */
        @NotNull(message = "轴数id不能空！")
        private Long truckAxleId;
    }


}
