liujie
2026-08-21 a7c8a8f6055e1a03414f2227d12ff2e87ec52d41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.tourguide.modules.review.dto;
 
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
 
public class OrderReviewCreateRequest {
    @NotNull(message = "订单ID不能为空")
    private Long orderId;
    @NotNull(message = "评价分数不能为空")
    @DecimalMin(value = "1.0", message = "评价分数不能低于1分")
    @DecimalMax(value = "5.0", message = "评价分数不能高于5分")
    private BigDecimal score;
    @Size(max = 1000, message = "评价内容不能超过1000字")
    private String content;
    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; }
}