BaseMapModel.java
569 Bytes
package com.glsx.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import javax.validation.constraints.NotNull;
@Data
@ToString(callSuper = true)
@ApiModel
public class BaseMapModel extends Basemodel {
//经度
@NotNull(message = "经度不能为空")
@ApiModelProperty(value = "经度",required=true)
private Double lng;
//纬度
@NotNull(message = "纬度不能为空")
@ApiModelProperty(value = "纬度",required=true)
private Double lat;
}