MrShi
昨天 7ee466ebc953bb5640bcf42f2b8e2a87aa471c21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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;
}