spotless 적용

This commit is contained in:
2026-01-15 15:12:30 +09:00
parent 8af0b2ce60
commit 871fb4a6c6
5 changed files with 33 additions and 15 deletions

View File

@@ -774,7 +774,8 @@ public class TrainingDataLabelRepositoryImpl extends QuerydslRepositorySupport
try { try {
// 최소 하나의 년도는 제공되어야 함 // 최소 하나의 년도는 제공되어야 함
if (beforeYear == null && afterYear == null) { if (beforeYear == null && afterYear == null) {
throw new IllegalArgumentException("At least one year parameter (beforeYear or afterYear) must be provided"); throw new IllegalArgumentException(
"At least one year parameter (beforeYear or afterYear) must be provided");
} }
String beforeCogUrl = null; String beforeCogUrl = null;
@@ -805,7 +806,8 @@ public class TrainingDataLabelRepositoryImpl extends QuerydslRepositorySupport
} }
// 제공된 년도에 대해 하나도 찾지 못한 경우에만 예외 발생 // 제공된 년도에 대해 하나도 찾지 못한 경우에만 예외 발생
if ((beforeYear != null && beforeCogUrl == null) && (afterYear != null && afterCogUrl == null)) { if ((beforeYear != null && beforeCogUrl == null)
&& (afterYear != null && afterCogUrl == null)) {
throw new RuntimeException( throw new RuntimeException(
"COG images not found for mapSheetNum: " "COG images not found for mapSheetNum: "
+ mapSheetNum + mapSheetNum

View File

@@ -778,7 +778,8 @@ public class TrainingDataReviewRepositoryImpl extends QuerydslRepositorySupport
try { try {
// 최소 하나의 년도는 제공되어야 함 // 최소 하나의 년도는 제공되어야 함
if (beforeYear == null && afterYear == null) { if (beforeYear == null && afterYear == null) {
throw new IllegalArgumentException("At least one year parameter (beforeYear or afterYear) must be provided"); throw new IllegalArgumentException(
"At least one year parameter (beforeYear or afterYear) must be provided");
} }
String beforeCogUrl = null; String beforeCogUrl = null;
@@ -809,7 +810,8 @@ public class TrainingDataReviewRepositoryImpl extends QuerydslRepositorySupport
} }
// 제공된 년도에 대해 하나도 찾지 못한 경우에만 예외 발생 // 제공된 년도에 대해 하나도 찾지 못한 경우에만 예외 발생
if ((beforeYear != null && beforeCogUrl == null) && (afterYear != null && afterCogUrl == null)) { if ((beforeYear != null && beforeCogUrl == null)
&& (afterYear != null && afterCogUrl == null)) {
throw new RuntimeException( throw new RuntimeException(
"COG images not found for mapSheetNum: " "COG images not found for mapSheetNum: "
+ mapSheetNum + mapSheetNum

View File

@@ -465,7 +465,9 @@ public class TrainingDataLabelApiController {
return ApiResponseDto.okObject(trainingDataLabelService.saveNewPolygon(request)); return ApiResponseDto.okObject(trainingDataLabelService.saveNewPolygon(request));
} }
@Operation(summary = "COG 이미지 URL 조회", description = "변화 전/후 COG 이미지 URL을 조회합니다. beforeYear와 afterYear 중 최소 하나는 필수입니다.") @Operation(
summary = "COG 이미지 URL 조회",
description = "변화 전/후 COG 이미지 URL을 조회합니다. beforeYear와 afterYear 중 최소 하나는 필수입니다.")
@ApiResponses( @ApiResponses(
value = { value = {
@ApiResponse( @ApiResponse(
@@ -476,7 +478,10 @@ public class TrainingDataLabelApiController {
mediaType = "application/json", mediaType = "application/json",
schema = schema =
@Schema(implementation = TrainingDataLabelDto.CogImageResponse.class))), @Schema(implementation = TrainingDataLabelDto.CogImageResponse.class))),
@ApiResponse(responseCode = "400", description = "년도 파라미터가 하나도 제공되지 않음", content = @Content), @ApiResponse(
responseCode = "400",
description = "년도 파라미터가 하나도 제공되지 않음",
content = @Content),
@ApiResponse(responseCode = "404", description = "이미지를 찾을 수 없음", content = @Content), @ApiResponse(responseCode = "404", description = "이미지를 찾을 수 없음", content = @Content),
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content) @ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
}) })
@@ -484,9 +489,11 @@ public class TrainingDataLabelApiController {
public ApiResponseDto<TrainingDataLabelDto.CogImageResponse> getCogImageUrl( public ApiResponseDto<TrainingDataLabelDto.CogImageResponse> getCogImageUrl(
@Parameter(description = "도엽번호", required = true, example = "35905086") @RequestParam @Parameter(description = "도엽번호", required = true, example = "35905086") @RequestParam
String mapSheetNum, String mapSheetNum,
@Parameter(description = "변화 전 년도", required = false, example = "2023") @RequestParam(required = false) @Parameter(description = "변화 전 년도", required = false, example = "2023")
@RequestParam(required = false)
Integer beforeYear, Integer beforeYear,
@Parameter(description = "변화 후 년도", required = false, example = "2024") @RequestParam(required = false) @Parameter(description = "변화 후 년도", required = false, example = "2024")
@RequestParam(required = false)
Integer afterYear) { Integer afterYear) {
return ApiResponseDto.ok( return ApiResponseDto.ok(
trainingDataLabelService.getCogImageUrl(mapSheetNum, beforeYear, afterYear)); trainingDataLabelService.getCogImageUrl(mapSheetNum, beforeYear, afterYear));

View File

@@ -465,7 +465,9 @@ public class TrainingDataReviewApiController {
return ApiResponseDto.okObject(trainingDataReviewService.saveNewPolygon(request)); return ApiResponseDto.okObject(trainingDataReviewService.saveNewPolygon(request));
} }
@Operation(summary = "COG 이미지 URL 조회", description = "변화 전/후 COG 이미지 URL을 조회합니다. beforeYear와 afterYear 중 최소 하나는 필수입니다.") @Operation(
summary = "COG 이미지 URL 조회",
description = "변화 전/후 COG 이미지 URL을 조회합니다. beforeYear와 afterYear 중 최소 하나는 필수입니다.")
@ApiResponses( @ApiResponses(
value = { value = {
@ApiResponse( @ApiResponse(
@@ -476,7 +478,10 @@ public class TrainingDataReviewApiController {
mediaType = "application/json", mediaType = "application/json",
schema = schema =
@Schema(implementation = TrainingDataReviewDto.CogImageResponse.class))), @Schema(implementation = TrainingDataReviewDto.CogImageResponse.class))),
@ApiResponse(responseCode = "400", description = "년도 파라미터가 하나도 제공되지 않음", content = @Content), @ApiResponse(
responseCode = "400",
description = "년도 파라미터가 하나도 제공되지 않음",
content = @Content),
@ApiResponse(responseCode = "404", description = "이미지를 찾을 수 없음", content = @Content), @ApiResponse(responseCode = "404", description = "이미지를 찾을 수 없음", content = @Content),
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content) @ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
}) })
@@ -484,9 +489,11 @@ public class TrainingDataReviewApiController {
public ApiResponseDto<TrainingDataReviewDto.CogImageResponse> getCogImageUrl( public ApiResponseDto<TrainingDataReviewDto.CogImageResponse> getCogImageUrl(
@Parameter(description = "도엽번호", required = true, example = "35905086") @RequestParam @Parameter(description = "도엽번호", required = true, example = "35905086") @RequestParam
String mapSheetNum, String mapSheetNum,
@Parameter(description = "변화 전 년도", required = false, example = "2023") @RequestParam(required = false) @Parameter(description = "변화 전 년도", required = false, example = "2023")
@RequestParam(required = false)
Integer beforeYear, Integer beforeYear,
@Parameter(description = "변화 후 년도", required = false, example = "2024") @RequestParam(required = false) @Parameter(description = "변화 후 년도", required = false, example = "2024")
@RequestParam(required = false)
Integer afterYear) { Integer afterYear) {
return ApiResponseDto.ok( return ApiResponseDto.ok(
trainingDataReviewService.getCogImageUrl(mapSheetNum, beforeYear, afterYear)); trainingDataReviewService.getCogImageUrl(mapSheetNum, beforeYear, afterYear));