Skip to content

Commit

Permalink
feat(#119): 접수증 생성 API 작성
Browse files Browse the repository at this point in the history
- FormController에 접수증 생성 API를 작성했어요.
  • Loading branch information
jyj1289 committed Sep 6, 2024
1 parent a491274 commit 55e104c
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -223,6 +224,15 @@ public ResponseEntity<Resource> generateAdmissionTicket(
.body(generateAdmissionTicketUseCase.execute(user));
}

@GetMapping("/proof-of-application")
public ResponseEntity<Resource> generateProfOfApplication(
@AuthenticationPrincipal(authority = Authority.USER) User user
) {
return ResponseEntity.ok()
.contentType(MediaType.APPLICATION_PDF)
.body(generateProofOfApplicationUseCase.execute(user));
}

@GetMapping("/second-round/format")
public ResponseEntity<Resource> downloadSecondRoundScoreFormatUseCase(
@AuthenticationPrincipal(authority = Authority.ADMIN) User user
Expand Down

0 comments on commit 55e104c

Please sign in to comment.