변화탐지 API 커밋, 에러로그 진행중
This commit is contained in:
@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
@Tag(name = "변화탐지", description = "변화탐지 API")
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/api/change-detection")
|
||||
@RequestMapping({"/api/change-detection", "/demo/api/change-detection"})
|
||||
@Transactional
|
||||
public class ChangeDetectionApiController {
|
||||
|
||||
@@ -41,11 +41,12 @@ public class ChangeDetectionApiController {
|
||||
}
|
||||
|
||||
@Operation(summary = "변화탐지 분류별 건수", description = "변화탐지 분류별 건수")
|
||||
@GetMapping("/class-count/{id}")
|
||||
@GetMapping("/class-count")
|
||||
public ApiResponseDto<List<ChangeDetectionDto.CountDto>> getChangeDetectionClassCount(
|
||||
@Parameter(description = "변화탐지 년도(차수) /year-list 의 analUid", example = "1") @PathVariable
|
||||
Long id) {
|
||||
return ApiResponseDto.ok(changeDetectionService.getChangeDetectionClassCount(id));
|
||||
@Parameter(description = "변화탐지 년도(차수) /year-list 의 analUid", example = "1") @RequestParam
|
||||
Long id,
|
||||
@Parameter(description = "탐지된 도엽번호", example = "34602060") @RequestParam String mapSheetNum) {
|
||||
return ApiResponseDto.ok(changeDetectionService.getChangeDetectionClassCount(id, mapSheetNum));
|
||||
}
|
||||
|
||||
@Operation(summary = "변화탐지 COG Url", description = "변화탐지 COG Url")
|
||||
@@ -64,4 +65,29 @@ public class ChangeDetectionApiController {
|
||||
public ApiResponseDto<List<ChangeDetectionDto.AnalYearList>> getChangeDetectionYearList() {
|
||||
return ApiResponseDto.ok(changeDetectionService.getChangeDetectionYearList());
|
||||
}
|
||||
|
||||
@Operation(summary = "변화탐지 탐지된 도엽 목록", description = "변화탐지 탐지된 도엽 목록")
|
||||
@GetMapping("/map-list")
|
||||
public ApiResponseDto<List<ChangeDetectionDto.MapSheetList>> getChangeDetectionMapSheetList(
|
||||
@Parameter(description = "년도목록 id", example = "1") @RequestParam Long analUid) {
|
||||
return ApiResponseDto.ok(changeDetectionService.getChangeDetectionMapSheetList(analUid));
|
||||
}
|
||||
|
||||
@Operation(summary = "변화탐지 결과 Polygon", description = "변화탐지 결과 Polygon")
|
||||
@GetMapping("/polygon")
|
||||
public ApiResponseDto<List<ChangeDetectionDto.PolygonGeometry>> getChangeDetectionPolygonList(
|
||||
@Parameter(description = "년도목록 id", example = "1") @RequestParam Long analUid,
|
||||
@Parameter(description = "도엽번호", example = "34602060") @RequestParam String mapSheetNum) {
|
||||
return ApiResponseDto.ok(
|
||||
changeDetectionService.getChangeDetectionPolygonList(analUid, mapSheetNum));
|
||||
}
|
||||
|
||||
@Operation(summary = "변화탐지 결과 Point", description = "변화탐지 결과 Point")
|
||||
@GetMapping("/point")
|
||||
public ApiResponseDto<List<ChangeDetectionDto.PointGeometry>> getChangeDetectionPointList(
|
||||
@Parameter(description = "년도목록 id", example = "1") @RequestParam Long analUid,
|
||||
@Parameter(description = "도엽번호", example = "34602060") @RequestParam String mapSheetNum) {
|
||||
return ApiResponseDto.ok(
|
||||
changeDetectionService.getChangeDetectionPointList(analUid, mapSheetNum));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user