Repository navigation
[BE-evaluation] 직원 자기평가 폼·제출 API 및 평가 만료 스케줄러 - #27
Merged
Merged
Conversation
- 신규 src/evaluations(복수) 모듈, 레거시 src/evaluation(단수)은 변경 없음 - GET /evaluations/self/:token: 자기선언 답변 + 평가 항목 조회 (링크 소비 안 함), SELF_PENDING 아니면 409 INVALID_EVALUATION_STATUS - POST /evaluations/self/:token/submit: 항목별 1~10점 제출 → CEO_PENDING, 링크 소비 - 항목 누락·중복 400 MISSING_EVALUATION_ITEM, 점수 위반 422 INVALID_SCORE, 재제출 409 ALREADY_SUBMITTED - EvaluationExpiryScheduler(매시간): 자기평가 마감 → SELF_EXPIRED + 링크 폐기, 대표 검증 마감 → CEO_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 2개와, 마감이 지난 평가를 자동으로 만료 처리하는 스케줄러를 추가합니다.
Closes #13
📌 변경 사항
src/evaluations(복수) 모듈 추가, 레거시src/evaluation(단수)은 변경 없음GET /evaluations/self/:token: 자기평가 폼 조회evaluationEnabled=true만), 점수 범위 1~10POST /evaluations/self/:token/submit: 항목별 자기점수 제출 → 상태CEO_PENDING, 링크 소비, 이후 수정 불가EvaluationExpiryScheduler(매시간)SELF_PENDING→SELF_EXPIRED+ 자기평가 링크 폐기CEO_PENDING·SELF_EXPIRED→CEO_EXPIRED📖 프론트 참고
/evaluation/self/:token{ items: [{ questionId, selfScore }] }만 허용 (서술형 등 다른 필드는 400)MISSING_EVALUATION_ITEMINVALID_SCOREALREADY_SUBMITTEDINVALID_EVALUATION_STATUSLINK_EXPIRED✅ 검증
👀 리뷰 포인트