Skip to content
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

Merged
merged 13 commits into from
Nov 15, 2024

Conversation

jyj1289
Copy link
Member

@jyj1289 jyj1289 commented Nov 15, 2024

🎫 관련 이슈

close #165


📄 개요

입학등록원 및 금연서약서 제출과 다운로드 기능을 만들었습니다.


🔨 작업 내용

  • 입학등록원 및 금연서약서 다운로드 API를 만들었습니다.
  • 입학등록원 및 금연서약서 업로드 API를 만들었습니다.

🏁 확인 사항

  • 테스트를 완료했나요?
  • API 문서를 작성했나요?
  • 코드 컨벤션을 준수했나요?
  • 불필요한 로그, 주석, import 등을 삭제했나요?

🙋🏻 덧붙일 말

oxjadex and others added 12 commits November 13, 2024 10:17
- 입학 등록원 양식에 타임리프를 적용했어요.
- 입학 등록원 및 금연서약서 다운로드 API를 작성했어요.
- 쓰지 않는 줄 알고 죽여버린 금연서약서를 부활시켰어요.
- 금연서약서 및 입학등록원 다운로드 API 테스트 코드를 작성했어요.
- 금연서약서 및 입학등록원 다운로드 API를 문서화했어요.
- 금연서약서 및 입학등록원 업로드 API를 작성했어요.
- 금연서약서 및 입학등록원 업로드 API를 작성했어요.
- 금연서약서 및 입학등록원 업로드 API 테스트코드를 작성했어요.
- 금연서약서 및 입학등록원 업로드 API를 문서화했어요.
- 테스트 메서드이름에 오타가 있어 수정했어요.
- 원서가 최종합격 상태일때만 presignedUrl을 발급받도록 변경했어요.
@jyj1289 jyj1289 requested a review from a team as a code owner November 15, 2024 02:16
@jyj1289 jyj1289 linked an issue Nov 15, 2024 that may be closed by this pull request
7 tasks
@jyj1289 jyj1289 self-assigned this Nov 15, 2024
Copy link

이렇게 리뷰해주세요.

🖐️ 규칙

  1. 개선이 필요한지 충분히 설명해주세요.
  2. 답을 알려주기보다는 스스로 고민하고 개선 방법을 선택할 수 있게 해주세요.
  3. 코드를 깔끔하게 유지하고, 일관되게 구현하도록 안내해 주세요.
  4. 리뷰 과정이 숙제검사가 아닌 학습과정으로 느낄 수 있게 리뷰해 주세요.
  5. 리뷰를 위한 리뷰를 하지 마세요. 피드백 할 게 없으면 칭찬해 주세요.

🥬 우선순위

리뷰 중요도에 따라 다음과 같은 prefix를 붙여주세요.

예시 - P5) 쓸모없는 주석 삭제해주세요.

  • P1: 꼭 반영해주세요 (Request changes)
  • P2: 적극적으로 고려해주세요 (Request changes)
  • P3: 웬만하면 반영해 주세요 (Comment)
  • P4: 반영해도 좋고 넘어가도 좋습니다 (Approve)
  • P5: 그냥 사소한 의견입니다 (Approve)


@RequiredArgsConstructor
@UseCase
public class DownloadAdmissionAndPledgeUseCase {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P4) 양식만 다운로드 받는거니까 DownloadAdmissionAndPledgeFormatUseCase라고 해도 될 거 같아요.

- 입학등록원 양식 다운로드 기능이기때문에 뒤에 format을 붙였습니다.
@cabbage16 cabbage16 merged commit b3fb83f into develop Nov 15, 2024
Copy link

Copy link
Member

@gimhanul gimhanul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셧슴니다 👍

Comment on lines +45 to +58
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());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거 왠지 공통 메서드일 거 같은데 분리하는 거 고려해봐도 좋을 거 같아욤

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

마루 운영 끝난 후 반영하도록 하겠습니다 :)

@jyj1289 jyj1289 deleted the feat/#165 branch November 15, 2024 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[새기능] 입학등록원 & 금연서약서 제출 및 조회
4 participants