liujie
2026-09-11 4f6f15b818704079ff2e4e4719b798f48d68a335
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
package com.tourguide.modules.operation.dto;
 
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
 
/** 景区汇合点保存请求。 */
public class ScenicMeetingPointRequest {
    @NotBlank(message = "汇合点名称不能为空")
    @Size(max = 128, message = "汇合点名称不能超过128个字符")
    private String pointName;
    @NotBlank(message = "汇合点具体地址不能为空")
    @Size(max = 500, message = "汇合点具体地址不能超过500个字符")
    private String address;
    @NotNull(message = "请在地图上标注汇合点")
    @DecimalMin(value = "-180", message = "汇合点经度不合法")
    @DecimalMax(value = "180", message = "汇合点经度不合法")
    private BigDecimal longitude;
    @NotNull(message = "请在地图上标注汇合点")
    @DecimalMin(value = "-90", message = "汇合点纬度不合法")
    @DecimalMax(value = "90", message = "汇合点纬度不合法")
    private BigDecimal latitude;
    @NotNull(message = "汇合点状态不能为空")
    @Min(value = 0, message = "汇合点状态不合法")
    @Max(value = 1, message = "汇合点状态不合法")
    private Integer status;
    @NotNull(message = "默认汇合点标识不能为空")
    @Min(value = 0, message = "默认汇合点标识不合法")
    @Max(value = 1, message = "默认汇合点标识不合法")
    private Integer isDefault;
 
    public String getPointName() { return pointName; }
    public void setPointName(String value) { this.pointName = value; }
    public String getAddress() { return address; }
    public void setAddress(String value) { this.address = value; }
    public BigDecimal getLongitude() { return longitude; }
    public void setLongitude(BigDecimal value) { this.longitude = value; }
    public BigDecimal getLatitude() { return latitude; }
    public void setLatitude(BigDecimal value) { this.latitude = value; }
    public Integer getStatus() { return status; }
    public void setStatus(Integer value) { this.status = value; }
    public Integer getIsDefault() { return isDefault; }
    public void setIsDefault(Integer value) { this.isDefault = value; }
}