[#493] 운영 건 파일 첨부 API — 업무·하위 업무·회의 발급·목록·다운로드·삭제 - #496
Merged
Merged
Conversation
- `/v1/operations/{operationId}/attachments` — oper 하나로 셋을 받는다. 권한은 `OperationAttachmentAccessPolicy`(종류별 읽기/쓰기 권한 그대로)
- `FileTargetType.OPERATION` + V18(CHECK 확장 · 첨부 메타 열 넷) · `AttachmentFileType`(문서·표·발표·압축·이미지) · 25MB
- 내려받기는 원본 이름을 붙인 서명 URL로 302 · 삭제만 감사 로그
- `OperationAttachmentControllerTest` 3건
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
… 못 쓴다 Co-Authored-By: Claude Opus 5 (1M context) <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(ssccops#410) — 회의 «결과물이 어디 있는지 연결이 안 된다»의 2차(1차는 외부 URL 행 · web#547).
POST /v1/operations/{operationId}/attachments—{fileName, fileSize}→ presigned PUT 발급(발급이 곧 첨부 한 건 · 콘텐츠 갤러리와 같은 계약). 형식은 이름의 확장자(AttachmentFileType— 문서·표·발표·압축·이미지), 25MB 초과 413ATTACHMENT_TOO_LARGE, 모르는 형식 400UNSUPPORTED_ATTACHMENT_TYPEGET …목록(이름·크기·올린 사람·일시) ·GET …/{fileId}/download-url— 원본 이름을response-content-disposition에 실은 15분 서명 URL을 JSON으로(인증 경로라 302는 브라우저 이동으로 못 쓴다) ·DELETE …/{fileId}— 참조 삭제 + 커밋 뒤 오브젝트 삭제 + 감사 로그operation.attachment.deleteoper의 확장이라FileTargetType.OPERATION+ operationId면 된다. 권한만 종류별로 갈리고 그것은OperationAttachmentAccessPolicy(업무WORK_READ/WORK_MANAGE· 하위 업무 담당자 또는WORK_MANAGE· 회의MEETING_READ/MEETING_MANAGE)file_rfrnc.trgt_se_cdCHECK에OPERATION(V13 규칙) + 첨부 메타 열 넷(orgnl_file_nm·file_size·rgtr_mbr_id·crt_dt· NULL 허용 · 기존 대상은 안 읽는다)검증
OperationAttachmentControllerTest3/3(발급→목록→내려받기 URL→삭제·메타 검증 · 권한 · 400/413/404) ·ContentPostImageControllerTest5/5 ·DomainCycleTestFlywayMigrationValidateTest(CHECK ↔ enum 대조)는 로컬 Docker 없음 → CI뒤따르는 것
trgt_se_cdOPERATION +file_rfrnc열 넷(레포 밖 xlsx)📎 근거
Closes #493