Repository navigation
[BE-evaluation] 대표 검증 평가 폼·제출 API (15일 기한·재직 중 차단) - #29
Merged
Merged
Conversation
- GET/POST /evaluations/:evaluationId/ceo (대표 전용) - 공통 검사 순서: 404/403 → 재직 중 403 STILL_EMPLOYED → 완료 409 ALREADY_COMPLETED → 마감 초과·CEO_EXPIRED 410 EVALUATION_EXPIRED → 그 외 상태 409 INVALID_EVALUATION_STATUS - 마감(퇴사일 + 15일 KST 23:59:59)은 상태값과 별개로 요청 시각을 직접 비교 (정각까지 허용) - 제출: 항목 대표 점수 + 공통 역량 6개 + 재고용 의사(boolean만) → COMPLETED, 의견 마감(완료 + 7일), 결과 링크(의견 마감 + 30일), 감사 로그, 커밋 후 결과 메일 - 항목·역량 누락·중복 400 MISSING_EVALUATION_ITEM, 1~10 위반 422 INVALID_SCORE - 서술형 필드·rehireIntent 문자열(YES/HOLD/NO, "false")은 400, 점수 수정 API 없음 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.
💡 개요
대표가 퇴사 직원의 자기선언·자기평가를 참고해 검증 점수, 공통 역량 6개, 재고용 의사를 입력하는 API 2개를 추가합니다.
법적 안전 로직(15일 기한, 재직 중 차단, 서술형 차단)이 포함되어 있어 리뷰 부탁드립니다.
Closes #14
📌 변경 사항
GET /evaluations/:evaluationId/ceo: 검증 폼 조회 (자기선언 답변·자기점수 + 공통 역량 6개)POST /evaluations/:evaluationId/ceo: 검증 제출 →COMPLETED, 제출 후 수정 불가resultNotified)⚖️ 법적 안전 로직 (GET·POST 공통, 이 순서로 검사)
EVALUATION_NOT_FOUND/ 다른 기업 403FORBIDDENSTILL_EMPLOYEDALREADY_COMPLETEDCEO_EXPIRED→ 410EVALUATION_EXPIREDCEO_PENDING,SELF_EXPIRED) 아님 409INVALID_EVALUATION_STATUSEVALUATION_EXPIRED, 403STILL_EMPLOYED, 409ALREADY_COMPLETED(GET)📖 프론트 참고
{ items:[{questionId, ceoScore}], commonCompetencies:[{key, score}], rehireIntent }rehireIntent는true/false만 (YES/HOLD/NO, 문자열은 400)MISSING_EVALUATION_ITEM, 1~10 정수가 아니면 422INVALID_SCORESELF_EXPIRED)selfScore는 null, 대표 검증은 가능/evaluation/result/:token✅ 검증