package com.sckw.car.entity.req;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @desc: 派车任务请求类
 * @author: Lt
 * @date: 2024-04-18
 */
@Data
@Accessors(chain = true)
public class kwWaybillOrderReq {

    /* 车辆id */
    private String truckId;

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

    /* 司机id */

    /*
      司机姓名
     */
    private String driverId;
    @NotBlank(message = "司机姓名不能是空")
    private String driverName;
    private String driverPhone;
    private String driverIdcard;

    /* 运单来源 */
    private Integer tType;

    /* 运单备注 */
    private String remark;

    /*
     派车人分配任务
     */
    //@NotEmpty(message = "请选择任务清单")
    @Size(min = 1, message = "任务清单至少需要一个元素")
    @Valid
    List<KwOrderCarWaybillOrderDispatchAssignReq> goodsList;

    /*
     派车地址
    */
    List<KwOrderCarWaybillOrderDispatchAddressReq> pathAddress;

}
