라벨링 종료여부 추가
This commit is contained in:
@@ -2,6 +2,8 @@ package com.kamco.cd.kamcoback.label.dto;
|
||||
|
||||
import com.kamco.cd.kamcoback.common.utils.interfaces.JsonFormatDttm;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Pattern;
|
||||
import java.time.ZonedDateTime;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
@@ -35,6 +37,43 @@ public class WorkerStatsDto {
|
||||
|
||||
@Schema(description = "프로젝트 UUID")
|
||||
private String uuid;
|
||||
|
||||
@Schema(description = "라벨링 종료 여부 (Y: 종료, N: 진행중)")
|
||||
private String labelingClosedYn;
|
||||
|
||||
@Schema(description = "검수 종료 여부 (Y: 종료, N: 진행중)")
|
||||
private String inspectionClosedYn;
|
||||
}
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Schema(description = "프로젝트 종료 여부 업데이트 요청")
|
||||
public static class UpdateClosedRequest {
|
||||
|
||||
@Schema(
|
||||
description = "프로젝트 UUID (선택) - 미입력 시 현재 진행중인 최신 프로젝트가 대상",
|
||||
example = "f97dc186-e6d3-4645-9737-3173dde8dc64")
|
||||
private String uuid;
|
||||
|
||||
@NotBlank(message = "종료 유형은 필수입니다.")
|
||||
@Pattern(regexp = "^(LABELING|INSPECTION)$", message = "종료 유형은 LABELING 또는 INSPECTION이어야 합니다.")
|
||||
@Schema(
|
||||
description = "종료 유형 (LABELING: 라벨링, INSPECTION: 검수)",
|
||||
example = "LABELING",
|
||||
allowableValues = {"LABELING", "INSPECTION"},
|
||||
requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String closedType;
|
||||
|
||||
@NotBlank(message = "종료 여부는 필수입니다.")
|
||||
@Pattern(regexp = "^[YN]$", message = "종료 여부는 Y 또는 N이어야 합니다.")
|
||||
@Schema(
|
||||
description = "종료 여부 (Y: 종료, N: 진행중)",
|
||||
example = "Y",
|
||||
allowableValues = {"Y", "N"},
|
||||
requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String closedYn;
|
||||
}
|
||||
|
||||
@Getter
|
||||
@@ -144,7 +183,7 @@ public class WorkerStatsDto {
|
||||
@Schema(description = "검수 작업 상태 (진행중/완료)")
|
||||
private String inspectionStatus;
|
||||
|
||||
@Schema(description = "검수 전체 대상 건수")
|
||||
@Schema(description = "검수 대상 건수 (라벨링 대상과 동일)")
|
||||
private Long inspectionTotalCount;
|
||||
|
||||
@Schema(description = "검수 완료 건수 (DONE)")
|
||||
@@ -179,10 +218,6 @@ public class WorkerStatsDto {
|
||||
@Deprecated
|
||||
@Schema(description = "[Deprecated] inspectionRemainingCount 사용 권장")
|
||||
private Long remainingInspectCount;
|
||||
|
||||
@Deprecated
|
||||
@Schema(description = "[Deprecated] labelingStatus/inspectionStatus 사용 권장")
|
||||
private String workStatus;
|
||||
}
|
||||
|
||||
@Getter
|
||||
|
||||
Reference in New Issue
Block a user