package com.doumee.dao.dto;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import javax.validation.constraints.NotNull;
|
|
/**
|
* 校验两个经纬度是否同城请求
|
* @author rk
|
* @date 2026/04/17
|
*/
|
@Data
|
@ApiModel("校验同城请求")
|
public class SameCityCheckDTO {
|
|
@NotNull(message = "第一个点纬度不能为空")
|
@ApiModelProperty(value = "第一个点纬度", example = "39.915", required = true)
|
private Double lat1;
|
|
@NotNull(message = "第一个点经度不能为空")
|
@ApiModelProperty(value = "第一个点经度", example = "116.404", required = true)
|
private Double lng1;
|
|
@NotNull(message = "第二个点纬度不能为空")
|
@ApiModelProperty(value = "第二个点纬度", example = "31.230", required = true)
|
private Double lat2;
|
|
@NotNull(message = "第二个点经度不能为空")
|
@ApiModelProperty(value = "第二个点经度", example = "121.473", required = true)
|
private Double lng2;
|
|
}
|