MrShi
5 小时以前 e50954f0708ecbbc672352102ae3b24279d40cc1
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
package com.doumee.dao.dto;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
 
/**
 * 订单评价请求
 *
 * @author rk
 * @date 2026/04/16
 */
@Data
@ApiModel("订单评价请求")
public class CommentOrderDTO {
 
    @NotNull(message = "订单主键不能为空")
    @ApiModelProperty(value = "订单主键", required = true)
    private Integer orderId;
 
    @NotNull(message = "存件门店评分不能为空")
    @Min(value = 1, message = "评分最低1星")
    @Max(value = 5, message = "评分最高5星")
    @ApiModelProperty(value = "存件门店评分1-5", required = true, example = "5")
    private Integer depositScore;
 
    @Min(value = 1, message = "评分最低1星")
    @Max(value = 5, message = "评分最高5星")
    @ApiModelProperty(value = "取件门店评分1-5(异地寄存且有取件门店时必填)", example = "5")
    private Integer takeScore;
 
    @Min(value = 1, message = "评分最低1星")
    @Max(value = 5, message = "评分最高5星")
    @ApiModelProperty(value = "司机评分1-5(异地寄存订单必填)", example = "5")
    private Integer driverScore;
 
    @ApiModelProperty(value = "评价内容")
    private String content;
 
}