Repository navigation
[BE-employment] 신규 직원 퇴사 등록 및 평가 생성 - #26
Merged
Merged
Conversation
- POST /employment/resign을 Employee 기준으로 새로 구현 (src/employee/employee-resign.*) - 직원 RESIGNED 처리, Evaluation(SELF_PENDING) 생성, 마감 = 퇴사일 +3일 / +15일 (KST 23:59:59) - 최근 자기선언의 evaluationEnabled 질문으로 EvaluationItem 생성 (순서 유지, 점수 null) - 자기평가 링크 발급 + 감사 로그, 커밋 후 메일 발송 (linkSent) - 403 FORBIDDEN, 409 ALREADY_RESIGNED, 409 DECLARATION_NOT_SUBMITTED, 422 INVALID_RESIGNATION_DATE - 레거시 src/employment에서 resign 핸들러·메서드·DTO만 제거 (applicant-confirm은 유지) 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.
💡 개요
대표가 직원의 퇴사를 등록하면 퇴사 평가를 만들고, 직원에게 자기평가 링크를 보냅니다.
같은 주소를 쓰던 레거시 퇴사 등록은 제거합니다.
Closes #12
📌 변경 사항
POST /employment/resign을 신규 흐름(Employee 기준)으로 구현evaluationEnabled=true인 질문만 평가 항목으로 생성 (순서 유지)linkSent)src/employment에서 resign 핸들러·메서드·DTO만 삭제 (applicant-confirm은 그대로){ employeeId, resignationDate: "YYYY-MM-DD", selfEvaluationSendChannel: "EMAIL" }applicantId)로 호출하면 400employmentId에는 직원 ID(employeeId)가 들어감📖 에러
FORBIDDEN: 다른 기업 직원ALREADY_RESIGNED: 이미 퇴사 처리됨DECLARATION_NOT_SUBMITTED: 최근 자기선언 미제출INVALID_RESIGNATION_DATE: 입사일 이전 또는 달력에 없는 날짜✅ 검증
applicant-confirm200 정상 동작 확인👀 리뷰 포인트