| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | 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; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "纬度") |
| | | private double longitude; |
| | | |
| | | @ApiModelProperty(value = "地理位置信息,用于MongoDB地理空间查询 [经度, 纬度]") |
| | | private double[] location; |
| | | @GeoSpatialIndexed(type = GeoSpatialIndexType.GEO_2DSPHERE) |
| | | private GeoJsonPoint location; |
| | | |
| | | @ApiModelProperty(value = "状态:0在线,1空闲,2上班中") |
| | | private Integer status; |