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