package com.stylefeng.guns.modular.system.warpper;
|
|
import lombok.Data;
|
import org.springframework.data.annotation.Id;
|
import org.springframework.data.mongodb.core.geo.GeoJsonPoint;
|
import org.springframework.data.mongodb.core.index.GeoSpatialIndexType;
|
import org.springframework.data.mongodb.core.index.GeoSpatialIndexed;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
/**
|
* @author zhibing.pu
|
* @Date 2023/5/2 23:51
|
*/
|
@Data
|
@Document(collection = "point_location")
|
public class PointLocation {
|
/**
|
* id
|
*/
|
@Id
|
private String id;
|
/**
|
* 数据id
|
*/
|
private Integer houseId;
|
/**
|
* 坐标点
|
*/
|
@GeoSpatialIndexed(type = GeoSpatialIndexType.GEO_2DSPHERE)
|
private GeoJsonPoint geoJsonPoint;
|
}
|