package com.doumee.dao.dto;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import javax.validation.Valid;
|
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotNull;
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
/**
|
* 异地存取预估费用请求DTO
|
*
|
* @Author : Rk
|
* @create 2026/4/14
|
*/
|
@Data
|
@ApiModel("异地存取预估费用请求")
|
public class CalculateRemotePriceDTO {
|
|
@ApiModelProperty(value = "城市主键", required = true)
|
@NotNull(message = "城市不能为空")
|
private Integer cityId;
|
|
@ApiModelProperty(value = "寄件纬度", required = true)
|
@NotNull(message = "寄件纬度不能为空")
|
private BigDecimal fromLat;
|
|
@ApiModelProperty(value = "寄件经度", required = true)
|
@NotNull(message = "寄件经度不能为空")
|
private BigDecimal fromLgt;
|
|
@ApiModelProperty(value = "取件纬度", required = true)
|
@NotNull(message = "取件纬度不能为空")
|
private BigDecimal toLat;
|
|
@ApiModelProperty(value = "取件经度", required = true)
|
@NotNull(message = "取件经度不能为空")
|
private BigDecimal toLgt;
|
|
@ApiModelProperty(value = "物品列表", required = true)
|
@NotEmpty(message = "物品列表不能为空")
|
@Valid
|
private List<OrderItemDTO> items;
|
|
@ApiModelProperty(value = "是否保价")
|
private Boolean insured;
|
|
@ApiModelProperty(value = "保价金额(元)")
|
private BigDecimal declaredAmount;
|
|
@ApiModelProperty(value = "是否加急")
|
private Boolean urgent;
|
}
|