Repository navigation
[BE-evaluation] 평가 결과 조회·의견 제출 API - #30
Merged
Merged
Conversation
- GET /evaluations/:evaluationId/result (대표): 자기선언·자기점수·대표점수·scoreGap·역량·재고용 의사·결과 통보·직원 의견 - GET /evaluations/result/:token (직원): 점수 비교·역량·의견 가능 여부, 최초 조회 시각 기록, 링크 소비 안 함 - POST /evaluations/result/:token/opinion (직원): 1회, 완료 + 7일 이내, 1~1000자, 점수 불변 - 409 OPINION_ALREADY_SUBMITTED, 410 OPINION_PERIOD_EXPIRED, 422 INVALID_OPINION, 미완료 409 EVALUATION_NOT_COMPLETED - 토큰 라우트를 별도 컨트롤러로 분리해 먼저 등록, 라우트 매칭 테스트 추가 - 대표 검증 제출 후 결과 메일 발송 여부를 감사 로그로 기록 (대표 결과의 notification.sent) - docs/evaluation-flow.md: 직원 등록부터 의견 제출까지 Postman 실행 순서·예시 body 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.
💡 개요
대표 검증이 끝난 평가의 결과를 대표·직원이 조회하고, 직원이 의견을 1회 제출하는 API 3개를 추가합니다.
이 PR로 평가 MVP 전체 흐름(직원 등록 → 질문 템플릿 → 자기선언 → 퇴사 → 자기평가 → 대표 검증 → 결과 → 의견)이 완성됩니다.
Closes #15
📌 변경 사항
GET /evaluations/:evaluationId/result(대표): 자기선언 답변·자기점수·대표점수·점수 차이·역량 6개·재고용 의사·결과 통보(notification)·직원 의견(employeeOpinion)GET /evaluations/result/:token(직원): 점수 비교·역량·의견 제출 가능 여부POST /evaluations/result/:token/opinion(직원): 의견 1회 제출, 점수는 변경되지 않음notification.sentdocs/evaluation-flow.md: 전체 흐름을 Postman으로 따라 하는 요청 순서·예시 body📖 프론트 참고
/evaluation/result/:tokenscoreGap = ceoScore - selfScore(자기평가 기한 초과로 자기점수가 없으면 null)OPINION_ALREADY_SUBMITTEDOPINION_PERIOD_EXPIREDINVALID_OPINIONEVALUATION_NOT_COMPLETED(대표·직원 결과 조회 공통)EVALUATION_NOT_COMPLETED추가 (명세 요청 예정)notification.sent가 false로 보임✅ 검증
docs/evaluation-flow.md1~9단계를 문서대로 실행해 28/28 통과 (대표 로그인 OTP부터 의견 제출까지)