1. 天地图响应结果数据类集中到一个类中;2.增加接口拦截器,在其中增加接口请求校验,内部服务校验ip,其他客户端请求对请求头校验(具体校验方法待定)
parent
0e9ce60318
commit
7fc28bba7b
@ -1,34 +0,0 @@
|
|||||||
package com.htfp.weather.web.pojo.cma;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
@Data @JsonIgnoreProperties(ignoreUnknown = true)
|
|
||||||
public class AddressComponent {
|
|
||||||
|
|
||||||
private String address;
|
|
||||||
private String city;
|
|
||||||
@JsonProperty("county_code")
|
|
||||||
private String countyCode;
|
|
||||||
private String nation;
|
|
||||||
@JsonProperty("poi_position")
|
|
||||||
private String poiPosition;
|
|
||||||
private String county;
|
|
||||||
@JsonProperty("city_code")
|
|
||||||
private String cityCode;
|
|
||||||
@JsonProperty("address_position")
|
|
||||||
private String addressPosition;
|
|
||||||
private String poi;
|
|
||||||
@JsonProperty("province_code")
|
|
||||||
private String provinceCode;
|
|
||||||
private String province;
|
|
||||||
private String road;
|
|
||||||
@JsonProperty("road_distance")
|
|
||||||
private int roadDistance;
|
|
||||||
@JsonProperty("poi_distance")
|
|
||||||
private int poiDistance;
|
|
||||||
@JsonProperty("address_distance")
|
|
||||||
private int addressDistance;
|
|
||||||
private String info;
|
|
||||||
}
|
|
Loading…
Reference in New Issue