package com.sckw.car.entity.req;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

/**
 * @desc: 派车请求实体类
 * @author: Lt
 * @date: 2024-04-18
 */
@Data
public class KwOrderSendCarParam {

    /*
    订单id
     */
    @NotNull(message = "订单id不能为空")
    private String orderId;

    /** 派车状态
     *
     */
    private Integer status;

    /*
      创建人
     */
    private String createBy;


    /*
    派车任务
     */
    @NotEmpty(message = "派车任务必选")
    @Size(min = 1, message = "派车任务至少有一个")
    @Valid
    List<kwWaybillOrderReq> dispatch;



}
