diff --git a/server/src/main/java/sunflower/server/api/TranscriptionApiController.java b/server/src/main/java/sunflower/server/api/TranscriptionApiController.java index 6982ede..70eb617 100644 --- a/server/src/main/java/sunflower/server/api/TranscriptionApiController.java +++ b/server/src/main/java/sunflower/server/api/TranscriptionApiController.java @@ -63,7 +63,7 @@ public ResponseEntity queryBrfFile( @PathVariable("id") Long id ) { final BrfFileDto brfFile = transcriptionService.findBrfFileById(id); - final BrfFileQueryResponse response = BrfFileQueryResponse.from(id, brfFile.getOriginalFileName(), brfFile.getContent()); + final BrfFileQueryResponse response = BrfFileQueryResponse.from(id, brfFile); return ResponseEntity.ok(response); } diff --git a/server/src/main/java/sunflower/server/api/response/BrfFileQueryResponse.java b/server/src/main/java/sunflower/server/api/response/BrfFileQueryResponse.java index 8290f0a..2126f6e 100644 --- a/server/src/main/java/sunflower/server/api/response/BrfFileQueryResponse.java +++ b/server/src/main/java/sunflower/server/api/response/BrfFileQueryResponse.java @@ -2,6 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; import lombok.Getter; +import sunflower.server.application.dto.BrfFileDto; @Getter public class BrfFileQueryResponse { @@ -9,20 +10,29 @@ public class BrfFileQueryResponse { @Schema(description = "Translations ID", defaultValue = "1") private final Long id; - @Schema(description = "Original File Name", defaultValue = "28번") + @Schema(description = "점역 결과 이름 (기본값은 original file name과 동일)", defaultValue = "28번.pdf") + private final String name; + + @Schema(description = "Original File Name", defaultValue = "28번.pdf") private final String originalFileName; @Schema(description = "brf 파일 내용", defaultValue = " \\documentclass82#ajpt;081article\"0\n\\usepackage82utf#h;081inputenc\"0\n\\usepackage82T#a;081fontenc\"0\n\\usepackage81CJKutf#h\"0\n\\usepackage81amsmath\"0\n\\usepackage81amsfonts\"0\n\\usepackage81amssymb\"0\n\\usepackage82version=#d;081mhchem\"0\n\\usepackage81stmaryrd\"0\n\n\\begin81document\"0\n\\begin81CJK\"081UTF#h\"081mj\"0\n\\begin81enumerate\"0\n \\setcounter81enumi\"081#bg\"0\n \\item $p