package com.stylefeng.guns.modular.system.util.model;
|
|
import lombok.Data;
|
import org.springframework.data.mongodb.core.geo.GeoJsonPolygon;
|
import org.springframework.data.mongodb.core.index.GeoSpatialIndexType;
|
import org.springframework.data.mongodb.core.index.GeoSpatialIndexed;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
import java.io.Serializable;
|
|
/**
|
* 地理围栏-多边形
|
* @author zhibing.pu
|
* @date 2023/4/29 23:53
|
*/
|
@Data
|
@Document(collection = "geo_fencing")
|
public class GeoFencingPolygon implements Serializable {
|
private static final long serialVersionUID = 4508868382007529971L;
|
|
private String id;
|
/**
|
* 站点id
|
*/
|
private Integer siteId;
|
/**
|
* 站点名称
|
*/
|
private String name;
|
/**
|
* 多边形经纬度
|
*/
|
@GeoSpatialIndexed(type = GeoSpatialIndexType.GEO_2DSPHERE)
|
private GeoJsonPolygon geoJsonPolygon;
|
|
}
|