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; }