feat: 활동증명서 렌더링(PDF) + 운영진 초안 생성#18
Open
youngunghan wants to merge 1 commit into
Open
Conversation
youngunghan
force-pushed
the
feat/certificate-render-draft
branch
from
July 19, 2026 00:24
dc36223 to
38aba24
Compare
This was referenced Jul 19, 2026
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 — 활동증명서 렌더링(PDF) + 초안 생성
POST /certificates/preview (require_certificate_eligible, JSON)
POST /certificates/drafts/preview (require_admin, JSON)
POST /certificates/drafts (require_admin, JSON)
WeasyPrint + Jinja2로 5개 섹션(기본 인적사항/자격 변동/징계 의결/소속 프로젝트/임원-집행부)을 렌더링해 application/pdf로 반환
미리보기(preview, drafts/preview)는 DB에 저장하지 않으며 발행번호는 "XXXX"로 마스킹
정회원/활동회원만 본인 미리보기·발급 가능 — 준회원은 거부
운영진 초안(drafts/preview, drafts)도 대상 회원이 정회원/활동회원이어야 함 — 준회원 대상 초안은 거부
지도교수(advisor) 서명은 운영진 경로(drafts/preview, drafts)에서만 허용, 본인 preview에서는 불허하며 advisor 선택 시 지도교수 성함 입력 필수
검증 메시지:· 준회원 본인/준회원 대상 초안 → "준회원은 활동증명서를 발급받을 수 없습니다." · 본인 미리보기에서 지도교수 서명 선택 → "지도교수님의 서명이 필요한 경우, 운영팀에 별도 문의해주세요." · 지도교수 서명 선택 후 성함 미입력 → "지도교수 서명을 선택한 경우 지도교수 성함을 입력해야 합니다." · PDF 렌더링 실패/손상된 서명 이미지 → "활동증명서 생성에 실패했습니다."
스택 PR — base는
feat/certificate-president-signature(PR #17 회장 서명/임기) 입니다. #17 머지 후 base는 main으로 자동 전환됩니다.