daniel 작업 - best epoch의 pth 만큼 zip파일 생성

This commit is contained in:
2026-04-09 13:15:49 +09:00
parent 02954aa439
commit 8b7ff0162d
7 changed files with 555 additions and 69 deletions

View File

@@ -369,9 +369,8 @@ public class ModelTrainDetailApiController {
}
@Operation(
summary = "학습 결과 ZIP 파일 전체 다운로드",
description =
"모델 UUID에 해당하는 모든 ZIP 파일 목록을 조회하고" + "생성된 모든 학습데이터의 ZIP 파일을 하나의 ZIP 파일로 압축하여 다운로드",
summary = "학습 결과 ZIP 파일 목록 조회",
description = "모델 UUID에 해당하는 모든 ZIP 파일 목록과 개별 다운로드 링크 반환",
parameters = {
@Parameter(
name = "kamco-download-uuid",
@@ -388,11 +387,12 @@ public class ModelTrainDetailApiController {
value = {
@ApiResponse(
responseCode = "200",
description = "학습데이터 zip파일 다운로드",
description = "ZIP 파일 목록 조회 성공",
content =
@Content(
mediaType = "application/octet-stream",
schema = @Schema(type = "string", format = "binary"))),
mediaType = "application/json",
schema =
@Schema(implementation = ModelTrainDetailDto.ZipFileListResponse.class))),
@ApiResponse(responseCode = "404", description = "모델 또는 파일 없음", content = @Content),
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
})
@@ -403,6 +403,7 @@ public class ModelTrainDetailApiController {
HttpServletRequest request)
throws IOException {
return modelTrainDetailService.downloadZipFile(uuid, downloadUuid, request);
return ResponseEntity.ok(
modelTrainDetailService.getZipFileListWithFullUrl(uuid, downloadUuid, request));
}
}