|
|
@@ -4,6 +4,7 @@ import cn.reghao.jutil.web.WebResult;
|
|
|
import cn.reghao.tnb.content.app.geo.model.vo.MapMarker;
|
|
|
import cn.reghao.tnb.content.app.geo.model.vo.MapPoint;
|
|
|
import cn.reghao.tnb.content.app.geo.service.MapService;
|
|
|
+import cn.reghao.tnb.content.app.geo.service.PhotoMapService;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import org.springframework.http.MediaType;
|
|
|
@@ -21,9 +22,11 @@ import java.util.List;
|
|
|
@RequestMapping("/api/geo/map")
|
|
|
public class MapController {
|
|
|
private final MapService mapService;
|
|
|
+ private final PhotoMapService photoMapService;
|
|
|
|
|
|
- public MapController(MapService mapService) {
|
|
|
+ public MapController(MapService mapService, PhotoMapService photoMapService) {
|
|
|
this.mapService = mapService;
|
|
|
+ this.photoMapService = photoMapService;
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "添加一个经纬度坐标", description = "N")
|
|
|
@@ -47,4 +50,11 @@ public class MapController {
|
|
|
//List<MapMarker> list = mapService.getStationMarks().subList(0, 1000);
|
|
|
return WebResult.success(list);
|
|
|
}
|
|
|
+
|
|
|
+ @Operation(summary = "获取地图标记", description = "N")
|
|
|
+ @GetMapping(value = "/cup", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
+ public String getCupMap() {
|
|
|
+ List<MapMarker> list = photoMapService.getPhotoMarks(4);
|
|
|
+ return WebResult.success(list);
|
|
|
+ }
|
|
|
}
|