nickchange
2023-12-05 9f66f1772e9a2499c030d89479242457b5f9aafd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
}