From 5120793933b53986fd193436d59501a3c08cd14d Mon Sep 17 00:00:00 2001 From: "gayoun.park" Date: Wed, 14 Jan 2026 09:59:46 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EB=B2=A8=EB=A7=81=20=ED=88=B4=20API?= =?UTF-8?q?=20=EC=84=A4=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TrainingDataLabelApiController.java | 187 +++++++++--------- .../TrainingDataReviewApiController.java | 186 ++++++++--------- 2 files changed, 186 insertions(+), 187 deletions(-) diff --git a/src/main/java/com/kamco/cd/kamcoback/trainingdata/TrainingDataLabelApiController.java b/src/main/java/com/kamco/cd/kamcoback/trainingdata/TrainingDataLabelApiController.java index e08df44a..3bc98ff1 100644 --- a/src/main/java/com/kamco/cd/kamcoback/trainingdata/TrainingDataLabelApiController.java +++ b/src/main/java/com/kamco/cd/kamcoback/trainingdata/TrainingDataLabelApiController.java @@ -157,7 +157,7 @@ public class TrainingDataLabelApiController { return ApiResponseDto.ok(trainingDataLabelService.getDetail(assignmentUid)); } - @Operation(summary = "라벨러 기본 page number 제공", description = "라벨러 기본 page number 제공") + @Operation(summary = "라벨러 목록 기본정보제공", description = "라벨러 목록 기본정보제공") @ApiResponses( value = { @ApiResponse( @@ -213,109 +213,108 @@ public class TrainingDataLabelApiController { name = "1개 polygon 저장", value = """ - { - "assignmentUid": "4f9ebc8b-6635-4177-b42f-7efc9c7b4c02", - "analUid": 53, - "mapSheetNum": "35905086", - "compareYyyy": 2023, - "targetYyyy": 2024, - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [126.663, 34.588], - [126.662, 34.587], - [126.664, 34.589], - [126.663, 34.588] - ] - ] - }, - "properties": { - "beforeClass": "WASTE", - "afterClass": "LAND" - } - } - ] - } - """), + { + "assignmentUid": "4f9ebc8b-6635-4177-b42f-7efc9c7b4c02", + "analUid": 53, + "mapSheetNum": "35905086", + "compareYyyy": 2023, + "targetYyyy": 2024, + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [126.663, 34.588], + [126.662, 34.587], + [126.664, 34.589], + [126.663, 34.588] + ] + ] + }, + "properties": { + "beforeClass": "WASTE", + "afterClass": "LAND" + } + } + ] + } + """), @io.swagger.v3.oas.annotations.media.ExampleObject( name = "3개 polygon 저장", value = """ - { - "assignmentUid": "4f9ebc8b-6635-4177-b42f-7efc9c7b4c02", - "analUid": 53, - "mapSheetNum": "35905086", - "compareYyyy": 2023, - "targetYyyy": 2024, - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [126.663, 34.588], - [126.662, 34.587], - [126.664, 34.589], - [126.663, 34.588] - ] - ] - }, - "properties": { - "beforeClass": "WASTE", - "afterClass": "LAND" - } - }, - { - "type": "Feature", - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [126.665, 34.590], - [126.664, 34.589], - [126.666, 34.591], - [126.665, 34.590] - ] - ] - }, - "properties": { - "beforeClass": "FOREST", - "afterClass": "BUILDING" - } - }, - { - "type": "Feature", - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [126.667, 34.592], - [126.666, 34.591], - [126.668, 34.593], - [126.667, 34.592] - ] - ] - }, - "properties": { - "beforeClass": "FARMLAND", - "afterClass": "SOLAR_PANEL" - } - } - ] - } - """) + { + "assignmentUid": "4f9ebc8b-6635-4177-b42f-7efc9c7b4c02", + "analUid": 53, + "mapSheetNum": "35905086", + "compareYyyy": 2023, + "targetYyyy": 2024, + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [126.663, 34.588], + [126.662, 34.587], + [126.664, 34.589], + [126.663, 34.588] + ] + ] + }, + "properties": { + "beforeClass": "WASTE", + "afterClass": "LAND" + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [126.665, 34.590], + [126.664, 34.589], + [126.666, 34.591], + [126.665, 34.590] + ] + ] + }, + "properties": { + "beforeClass": "FOREST", + "afterClass": "BUILDING" + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [126.667, 34.592], + [126.666, 34.591], + [126.668, 34.593], + [126.667, 34.592] + ] + ] + }, + "properties": { + "beforeClass": "FARMLAND", + "afterClass": "SOLAR_PANEL" + } + } + ] + } + """) })) @RequestBody TrainingDataLabelDto.NewPolygonRequest request) { return ApiResponseDto.okObject(trainingDataLabelService.saveNewPolygon(request)); } - @Operation(summary = "COG 이미지 URL 조회", description = "변화 전/후 COG 이미지 URL을 함께 조회합니다") @ApiResponses( value = { diff --git a/src/main/java/com/kamco/cd/kamcoback/trainingdata/TrainingDataReviewApiController.java b/src/main/java/com/kamco/cd/kamcoback/trainingdata/TrainingDataReviewApiController.java index e206b1a3..8febf996 100644 --- a/src/main/java/com/kamco/cd/kamcoback/trainingdata/TrainingDataReviewApiController.java +++ b/src/main/java/com/kamco/cd/kamcoback/trainingdata/TrainingDataReviewApiController.java @@ -157,7 +157,7 @@ public class TrainingDataReviewApiController { return ApiResponseDto.ok(trainingDataReviewService.getDetail(operatorUid)); } - @Operation(summary = "검수자 기본 page number 제공", description = "검수자 기본 page number 제공") + @Operation(summary = "검수자 목록 기본정보제공", description = "검수자 목록 기본정보제공") @ApiResponses( value = { @ApiResponse( @@ -213,102 +213,102 @@ public class TrainingDataReviewApiController { name = "1개 polygon 저장", value = """ - { - "operatorUid": "93c56be8-0246-4b22-b976-2476549733cc", - "analUid": 53, - "mapSheetNum": "35905086", - "compareYyyy": 2023, - "targetYyyy": 2024, - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [126.663, 34.588], - [126.662, 34.587], - [126.664, 34.589], - [126.663, 34.588] - ] - ] - }, - "properties": { - "beforeClass": "WASTE", - "afterClass": "LAND" - } - } - ] - } - """), + { + "operatorUid": "93c56be8-0246-4b22-b976-2476549733cc", + "analUid": 53, + "mapSheetNum": "35905086", + "compareYyyy": 2023, + "targetYyyy": 2024, + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [126.663, 34.588], + [126.662, 34.587], + [126.664, 34.589], + [126.663, 34.588] + ] + ] + }, + "properties": { + "beforeClass": "WASTE", + "afterClass": "LAND" + } + } + ] + } + """), @io.swagger.v3.oas.annotations.media.ExampleObject( name = "3개 polygon 저장", value = """ - { - "operatorUid": "93c56be8-0246-4b22-b976-2476549733cc", - "analUid": 53, - "mapSheetNum": "35905086", - "compareYyyy": 2023, - "targetYyyy": 2024, - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [126.663, 34.588], - [126.662, 34.587], - [126.664, 34.589], - [126.663, 34.588] - ] - ] - }, - "properties": { - "beforeClass": "WASTE", - "afterClass": "LAND" - } - }, - { - "type": "Feature", - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [126.665, 34.590], - [126.664, 34.589], - [126.666, 34.591], - [126.665, 34.590] - ] - ] - }, - "properties": { - "beforeClass": "FOREST", - "afterClass": "BUILDING" - } - }, - { - "type": "Feature", - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [126.667, 34.592], - [126.666, 34.591], - [126.668, 34.593], - [126.667, 34.592] - ] - ] - }, - "properties": { - "beforeClass": "FARMLAND", - "afterClass": "SOLAR_PANEL" - } - } - ] - } - """) + { + "operatorUid": "93c56be8-0246-4b22-b976-2476549733cc", + "analUid": 53, + "mapSheetNum": "35905086", + "compareYyyy": 2023, + "targetYyyy": 2024, + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [126.663, 34.588], + [126.662, 34.587], + [126.664, 34.589], + [126.663, 34.588] + ] + ] + }, + "properties": { + "beforeClass": "WASTE", + "afterClass": "LAND" + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [126.665, 34.590], + [126.664, 34.589], + [126.666, 34.591], + [126.665, 34.590] + ] + ] + }, + "properties": { + "beforeClass": "FOREST", + "afterClass": "BUILDING" + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [126.667, 34.592], + [126.666, 34.591], + [126.668, 34.593], + [126.667, 34.592] + ] + ] + }, + "properties": { + "beforeClass": "FARMLAND", + "afterClass": "SOLAR_PANEL" + } + } + ] + } + """) })) @RequestBody TrainingDataReviewDto.NewPolygonRequest request) {