From 55e104cc9d672099192878557174419a8d309a3f Mon Sep 17 00:00:00 2001 From: jyj1289 Date: Fri, 6 Sep 2024 13:40:29 +0900 Subject: [PATCH] =?UTF-8?q?feat(#119):=20=EC=A0=91=EC=88=98=EC=A6=9D=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20API=20=EC=9E=91=EC=84=B1=20-=20FormControl?= =?UTF-8?q?ler=EC=97=90=20=EC=A0=91=EC=88=98=EC=A6=9D=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=20API=EB=A5=BC=20=EC=9E=91=EC=84=B1=ED=96=88=EC=96=B4=EC=9A=94?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maru/presentation/form/FormController.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/bamdoliro/maru/presentation/form/FormController.java b/src/main/java/com/bamdoliro/maru/presentation/form/FormController.java index 59f5ecf1..122f45c1 100644 --- a/src/main/java/com/bamdoliro/maru/presentation/form/FormController.java +++ b/src/main/java/com/bamdoliro/maru/presentation/form/FormController.java @@ -61,6 +61,7 @@ public class FormController { private final QueryFirstFormResultUseCase queryFirstFormResultUseCase; private final QueryFinalFormResultUseCase queryFinalFormResultUseCase; private final GenerateAdmissionTicketUseCase generateAdmissionTicketUseCase; + private final GenerateProofOfApplicationUseCase generateProofOfApplicationUseCase; private final DownloadSecondRoundScoreFormatUseCase downloadSecondRoundScoreFormatUseCase; private final UpdateSecondRoundScoreUseCase updateSecondRoundScoreUseCase; private final ExportFinalPassedFormUseCase exportFinalPassedFormUseCase; @@ -223,6 +224,15 @@ public ResponseEntity generateAdmissionTicket( .body(generateAdmissionTicketUseCase.execute(user)); } + @GetMapping("/proof-of-application") + public ResponseEntity generateProfOfApplication( + @AuthenticationPrincipal(authority = Authority.USER) User user + ) { + return ResponseEntity.ok() + .contentType(MediaType.APPLICATION_PDF) + .body(generateProofOfApplicationUseCase.execute(user)); + } + @GetMapping("/second-round/format") public ResponseEntity downloadSecondRoundScoreFormatUseCase( @AuthenticationPrincipal(authority = Authority.ADMIN) User user