Repository navigation
[BE-referral] 인재 추천 게시물 작성·목록·상세·수정·삭제 API - #33
Merged
Merged
Conversation
- POST /referral/posts (작성 기업 대표): PUBLISHED, 만료 = 게시일 + 3·6개월
- 403 FORBIDDEN / CONSENT_NOT_GIVEN(동의 없음·익명 동의인데 실명), 409 ACTIVE_POST_EXISTS,
422 INVALID_RECOMMENDATION_CONTENT(200자 초과·금지 표현, 금지어는 법무 검토 TODO)
- 이력서는 트랜잭션 전에 confirmUploaded로 실제 업로드 확인 (404/422)
- GET /referral/posts, GET /referral/posts/:postId (대표·인사팀장): 모든 기업의 PUBLISHED·기간 내·동의 AGREED 게시물만
- 익명은 이름 마스킹(김**), 상세는 업로드 확인된 이력서만 5분 다운로드 URL, 상세 조회 감사 로그
- 비공개·철회 404 REFERRAL_POST_NOT_FOUND, 기간 만료 410 REFERRAL_POST_EXPIRED
- PATCH /referral/posts/:postId (작성 기업 대표): 제목·추천 사유·이름 표시, 3 → 6개월 연장, 403 CONSENT_WITHDRAWN
- DELETE /referral/posts/:postId (작성 기업 대표): 소프트 삭제 DELETED, 409 ALREADY_HIDDEN
- ReferralExpiryScheduler: 기간 지난 PUBLISHED → EXPIRED 추가
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 5개를 추가합니다.
이 PR로 인재 추천 MVP(동의 → 이력서 업로드 → 게시 → 조회 → 철회)가 완성됩니다.
Closes #18
📌 변경 사항
POST /referral/posts(작성 기업 대표): 게시물 작성, 게시 기간 3·6개월GET /referral/posts(대표·인사팀장): 모든 기업의 공개 게시물 목록 (검색어·직급 필터, 페이지네이션)GET /referral/posts/:postId(대표·인사팀장): 상세, 업로드 확인된 이력서만 5분짜리 다운로드 URLPATCH /referral/posts/:postId(작성 기업 대표): 제목·추천 사유·이름 표시 방식 수정, 게시 기간 3 → 6개월 연장DELETE /referral/posts/:postId(작성 기업 대표): 소프트 삭제 (DELETED)EXPIRED🔒 공개 조건
PUBLISHED+ 게시 기간 내 + 직원 동의AGREED인 게시물만 보임김민준→김**)CONSENT_NOT_GIVEN)📖 프론트 참고
INVALID_RECOMMENDATION_CONTENTACTIVE_POST_EXISTSREFERRAL_POST_NOT_FOUND, 기간 만료 410REFERRAL_POST_EXPIREDCONSENT_WITHDRAWN, 기간 단축 422INVALID_PUBLISH_PERIODALREADY_HIDDENHIDDEN이 아닌DELETED(소프트 삭제), 응답 필드deletedAtINVALID_PUBLISH_PERIOD(422), 수정 시REFERRAL_POST_EXPIRED(410)❓ 확인 필요
FORBIDDEN_RECOMMENDATION_WORDS, TODO)✅ 검증