feat: 근로자 상세 안내이력 조회 API 구현 - #145
Merged
Merged
Conversation
BcKmini
approved these changes
Aug 12, 2026
Member
|
고생하셨습니다. 좋아요 |
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.
왜 필요한가요?
Client #318의 근로자 상세
안내이력화면은 근로자 한 명의 여러 업무에 흩어진 안내·응답 기록을 조회할 Server API가 없어 정적 EmptyState로 남아 있었습니다.운영 감사용
/audit-events를 화면에 직접 노출하지 않고, 기존 감사 이벤트 중 근로자 화면에 필요한 항목만 안전한 문구로 변환해 반환합니다.Closes #144
Refs fowoco/client#318
무엇이 바뀌나요?
GET /api/v1/workers/{workerId}/activities추가worker → task → worker_link → audit_event관계를 이용해 DB Migration 없이 조회GUIDANCE_SENT,GUIDANCE_OPENED,WORKER_RESPONSE_SUBMITTED,RESPONSE_REVIEWED만 allowlist로 반환limit 1~100지원companyId를 기준으로 사업장 격리하고 타 사업장 근로자는 404 처리응답 예시
{ "items": [ { "activity_id": "10000000-0000-0000-0000-000000000001", "type": "GUIDANCE_SENT", "task_id": "20000000-0000-0000-0000-000000000001", "task_title": "여권 사본 제출 요청", "summary": "모바일 안내를 전송했습니다.", "occurred_at": "2026-08-12T10:30:00Z" } ], "next_cursor": null }검증
./gradlew test --tests com.fowoco.server.workerlink.WorkerLinkSecurityIntegrationTest./gradlew clean test영향 범위
/audit-events,/tasks/{taskId}/activities계약 변경 없음Client 연결 참고
상세 응답 내용은 이 타임라인에서 추정하지 않습니다.
WORKER_RESPONSE_SUBMITTED항목을 선택했을 때 기존 근로자 응답 조회 API로 상세 내용을 확인하는 방식이 안전합니다.