package com.sckw.transport.model.vo;

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

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

/**
 * @author :chenXiaoFei
 * @version :1.0
 * @description : 派车请求参数
 * @create :2025-11-14 10:01:00
 */
@Data
public class DispatchCarReq implements Serializable {
    @Serial
    private static final long serialVersionUID = -8280142385536425018L;
    /**
     * 物流订单id
     */
    @Schema(description = "物流订单id")
    @NotBlank(message = "物流订单id不能为空")
    private String logisticOrderId;
    /**
     * 企业id
     */
    @Schema(description = "企业id")
    @NotBlank(message = "企业id不能为空")
    private String entId;
    /**
     * 车辆id列表
     */
    @Schema(description = "车辆id")
    @NotEmpty(message = "车辆id列表")
    private List<CarInfo> carInfos;
    @Data
    public static class CarInfo implements Serializable{
        @Serial
        private static final long serialVersionUID = 4384175564253296575L;
        /**
         * 车辆id
         */
        @Schema(description = "车辆id")
        @NotBlank(message = "车辆id不能为空")
        private String truckId;
        /**
         * 车牌号
         */
        @Schema(description = "车牌号")
        @NotBlank(message = "车牌号不能为空")
        private String truckNo;
    }
}
