[KC-168] 라벨링 툴 - 목록, 상세 API 나누기

This commit is contained in:
2026-01-12 10:55:29 +09:00
parent c59c6868dd
commit e55fe3f6d6
6 changed files with 126 additions and 55 deletions

View File

@@ -29,10 +29,15 @@ public class TrainingDataLabelDto {
private String mapSheetNum;
private String mapIdNm;
private Long pnu;
@JsonIgnore private String geom_data; // json string
private JsonNode geom;
private String beforeCogUrl;
private String afterCogUrl;
// @JsonIgnore
// private String geomData; // json string
// private JsonNode geom;
// private String beforeCogUrl;
// private String afterCogUrl;
// @JsonIgnore
// private String mapBboxString; //json string
// private JsonNode mapBbox;
public LabelingListDto(
UUID assignmentUid,
@@ -41,10 +46,7 @@ public class TrainingDataLabelDto {
String workState,
String mapSheetNum,
String mapIdNm,
Long pnu,
String geom_data,
String beforeCogUrl,
String afterCogUrl) {
Long pnu) {
this.assignmentUid = assignmentUid;
this.inferenceGeomUid = inferenceGeomUid;
this.workerUid = workerUid;
@@ -52,18 +54,48 @@ public class TrainingDataLabelDto {
this.mapSheetNum = mapSheetNum;
this.mapIdNm = mapIdNm;
this.pnu = pnu;
}
}
@Schema(name = "LabelingGeometryInfo", description = "LabelingGeometryInfo")
@Getter
@Setter
@NoArgsConstructor
public static class LabelingGeometryInfo {
private UUID assignmentUid;
private Long inferenceGeomUid;
@JsonIgnore private String geomData; // json string
private JsonNode geom;
private String beforeCogUrl;
private String afterCogUrl;
@JsonIgnore private String mapBboxString; // json string
private JsonNode mapBbox;
public LabelingGeometryInfo(
UUID assignmentUid,
Long inferenceGeomUid,
String geomData,
String beforeCogUrl,
String afterCogUrl,
String mapBboxString) {
this.assignmentUid = assignmentUid;
this.inferenceGeomUid = inferenceGeomUid;
this.beforeCogUrl = beforeCogUrl;
this.afterCogUrl = afterCogUrl;
ObjectMapper mapper = new ObjectMapper();
JsonNode geomJson;
JsonNode mapBboxJson;
try {
geomJson = mapper.readTree(geom_data);
geomJson = mapper.readTree(geomData);
mapBboxJson = mapper.readTree(mapBboxString);
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
this.geom = geomJson;
this.beforeCogUrl = beforeCogUrl;
this.afterCogUrl = afterCogUrl;
this.geom = geomJson;
this.mapBbox = mapBboxJson;
}
}