package com.aircraft.modules.order.domain.dto;

import com.aircraft.modules.system.domain.dto.LocalAttachmentMaterialDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 *
 * 新增订单任务DTO
 *
 * @author chenxiky
 * @version 1.0.0
 * @since 2025/7/16
 */
@Data
public class AddOrderTaskDTO {

    /**
     * 订单ID
     */
    @NotNull(message = "订单ID不能为空")
    @ApiModelProperty(value = "订单ID", required = true)
    private Long orderId;

    /**
     * 执行设备ID
     */
    @NotNull(message = "执行设备ID不能为空")
    @ApiModelProperty(value = "执行设备ID", required = true)
    private Long deviceId;

    /**
     * 执行路线ID
     */
    @NotNull(message = "执行路线ID不能为空")
    @ApiModelProperty(value = "执行路线ID", required = true)
    private Long routeId;

    /**
     * 载物重量
     */
    @NotNull(message = "载物重量不能为空")
    @ApiModelProperty(value = "载物重量", required = true)
    private BigDecimal cargoWeight;

    /**
     * 图片材料List
     */
    @ApiModelProperty(value = "图片材料List集合")
    private List<LocalAttachmentMaterialDTO> attachmentMaterialList;
}
