Location.java 440 Bytes
package com.dituhui.pea.pojo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@Setter
@Getter
@AllArgsConstructor
public class Location {
    /**
     * 地址纬度
     */
    @NotNull(message = "地址纬度必填")
    private Double latitude;

    /**
     * 地址经度
     */
    @NotNull(message = "地址经度必填")
    private Double longitude;
}