| | |
| | | package com.ruoyi.utils.tools; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonCreator; |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | /** |
| | | * @Description: |
| | |
| | | * @Version: 1.0 |
| | | **/ |
| | | @Data |
| | | @NoArgsConstructor |
| | | public class Point{ |
| | | private static final long serialVersionUID = 1L; |
| | | private Double longitude; |
| | | private Double latitude; |
| | | |
| | | public Point(Double x, Double y) { |
| | | @JsonCreator |
| | | public Point(@JsonProperty("x") Double x, @JsonProperty("y") Double y) { |
| | | this.longitude = x; |
| | | this.latitude = y; |
| | | } |