-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[새기능] 입학등록원 & 금연서약서 제출 및 조회 #166
Conversation
- 입학 등록원 양식에 타임리프를 적용했어요.
- 입학 등록원 및 금연서약서 다운로드 API를 작성했어요.
- 쓰지 않는 줄 알고 죽여버린 금연서약서를 부활시켰어요.
- 금연서약서 및 입학등록원 다운로드 API 테스트 코드를 작성했어요.
- 금연서약서 및 입학등록원 다운로드 API를 문서화했어요.
- 금연서약서 및 입학등록원 업로드 API를 작성했어요.
- 금연서약서 및 입학등록원 업로드 API를 작성했어요.
- 금연서약서 및 입학등록원 업로드 API 테스트코드를 작성했어요.
- 금연서약서 및 입학등록원 업로드 API를 문서화했어요.
- 원서가 최종합격 상태일때만 presignedUrl을 발급받도록 변경했어요.
이렇게 리뷰해주세요.🖐️ 규칙
🥬 우선순위리뷰 중요도에 따라 다음과 같은 prefix를 붙여주세요.
|
|
||
@RequiredArgsConstructor | ||
@UseCase | ||
public class DownloadAdmissionAndPledgeUseCase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P4) 양식만 다운로드 받는거니까 DownloadAdmissionAndPledgeFormatUseCase라고 해도 될 거 같아요.
- 입학등록원 양식 다운로드 기능이기때문에 뒤에 format을 붙였습니다.
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셧슴니다 👍
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); | ||
PdfDocument mergedDocument = new PdfDocument(new PdfWriter(outputStream)); | ||
PdfMerger pdfMerger = new PdfMerger(mergedDocument); | ||
|
||
templates | ||
.stream() | ||
.map((t) -> processTemplateService.execute(t, formMap)) | ||
.map(generatePdfService::execute) | ||
.forEach((s) -> mergePdfService.execute(pdfMerger, s)); | ||
|
||
mergedDocument.close(); | ||
pdfMerger.close(); | ||
|
||
return new ByteArrayResource(outputStream.toByteArray()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요거 왠지 공통 메서드일 거 같은데 분리하는 거 고려해봐도 좋을 거 같아욤
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
마루 운영 끝난 후 반영하도록 하겠습니다 :)
🎫 관련 이슈
close #165
📄 개요
🔨 작업 내용
🏁 확인 사항
🙋🏻 덧붙일 말