package org.dromara.system.domain.bo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.system.domain.TblDzbcCargoOrder;

import java.util.List;

@Data
public class CargoOrderSubmitBo {

    @NotBlank(message = "任务编号不能为空")
    private String tripNo;

    @NotNull(message = "起始站点ID不能为空")
    private Long fromSiteId;

    @NotNull(message = "送达站点ID不能为空")
    private Long toSiteId;

    @NotBlank(message = "发货人姓名不能为空")
    private String senderName;

    @NotBlank(message = "发货人电话不能为空")
    private String senderPhone;

    @NotBlank(message = "收货人姓名不能为空")
    private String receiverName;

    @NotBlank(message = "收货人电话不能为空")
    private String receiverPhone;

    private List<CargoItemBo> items;

    private String remark;
}
