| | |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | public class OrderReviewCreateRequest { |
| | | @NotNull(message = "订单ID不能为空") |
| | |
| | | private BigDecimal score; |
| | | @Size(max = 1000, message = "评价内容不能超过1000字") |
| | | private String content; |
| | | @Size(max = 3, message = "评价图片最多三张") |
| | | private List<String> images; |
| | | public Long getOrderId() { return orderId; } |
| | | public void setOrderId(Long orderId) { this.orderId = orderId; } |
| | | public BigDecimal getScore() { return score; } |
| | | public void setScore(BigDecimal score) { this.score = score; } |
| | | public String getContent() { return content; } |
| | | public void setContent(String content) { this.content = content; } |
| | | public List<String> getImages() { return images; } |
| | | public void setImages(List<String> images) { this.images = images; } |
| | | } |