feat: 활동증명서 원본 등록#21
Open
youngunghan wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
신규 API — 활동증명서 원본(오프라인 서명본) 등록
POST /certificates/{certificate_id}/original (require_president, multipart/form-data, field file)
초안(DRAFT, ORIGINAL_PENDING) 상태의 증명서에 회장이 오프라인으로 서명한 PDF 원본을 등록
이 시점에 발행번호가 부여되고 상태가 ISSUED로 전환, 처리 이력에 original_registered 기록
content-type application/pdf + "%PDF-" 매직바이트 이중 검사, 최대 10MB
이미 발급 완료된 건은 재등록 거부
검증 메시지:· PDF 형식/매직바이트 불일치 → ".pdf 파일이 맞는지 확인해주세요." · 10MB 초과 → "파일 용량이 너무 큽니다. (최대 10MB)" · 이미 발급 완료된 건 재등록 시도 → "이미 발급이 완료된 활동증명서입니다."
스택 PR — base는
feat/certificate-issue-number(PR #20). 머지 순서: #17(⑤) → #18(①) → #20(②) → 이 PR.