feat: add presigned upload support for recruit files#327
Merged
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (11)
요약S3 사전 서명된 업로드 URL 생성 기능을 도입하고, 파일 URL 해석을 추가하는 변경사항입니다. 리소스 및 모집 관련 서비스에 프리사인드 업로드 엔드포인트를 추가하고, RecruitCore 및 RecruitMember 모듈에서 S3 파일 URL을 해석합니다. 변경사항
시퀀스 다이어그램sequenceDiagram
participant Client
participant ResourceController
participant ResourceService
participant S3Service
participant AWS as AWS S3
Client->>ResourceController: POST /presigned-upload<br/>PresignedUploadRequest
ResourceController->>ResourceService: createPresignedUpload(auth, request)
ResourceService->>ResourceService: 파일 크기 검증
ResourceService->>S3Service: createPresignedUpload(userId, s3key,<br/>fileName, contentType)
S3Service->>S3Service: buildKey로 S3 키 생성
S3Service->>AWS: PutObjectRequest 사전 서명
AWS-->>S3Service: 프리사인드 업로드 URL
S3Service-->>ResourceService: PresignedUpload(key, uploadUrl)
ResourceService-->>ResourceController: PresignedUploadResponse
ResourceController-->>Client: ApiResponse<PresignedUploadResponse>
Client->>Client: 프리사인드 URL로 S3에 직접 업로드
Client->>AWS: PUT 파일 (프리사인드 URL)
AWS-->>Client: 업로드 완료
코드 검토 예상 소요 시간🎯 3 (보통) | ⏱️ ~25분 연관된 가능성 있는 PR
제안 레이블
시
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
📌 연관된 이슈
✨ 작업 내용
💬 리뷰 요구사항(선택)
Summary by CodeRabbit
릴리스 노트
새 기능
개선