-
Notifications
You must be signed in to change notification settings - Fork 2
[REFACTOR] 백킹트랙 오디오 S3 업로드 및 조회 기능 추가 #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
on1yoneprivate
merged 8 commits into
develop
from
refactor/#184-backing-track-s3-upload
Aug 11, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5ed9b4e
refactor: S3 파일 타입별 Object Key 관리 구조 개선 (#184)
on1yoneprivate 850a531
feat: 백킹트랙 오디오 Presigned URL 업로드 기능 추가 (#184)
on1yoneprivate cfeec5f
refactor: 백킹트랙 오디오 조회에 Presigned URL 적용 (#184)
on1yoneprivate 1c55f9a
fix: 백킹트랙 마이그레이션 Object Key prefix 검증 추가 (#184)
on1yoneprivate 301fe2a
Merge branch 'develop' into refactor/#184-backing-track-s3-upload
on1yoneprivate 9f03d9d
Merge branch 'develop' into refactor/#184-backing-track-s3-upload
on1yoneprivate 3468827
fix: 백킹트랙 오디오 Object Key 정규화 값 저장 (#184)
on1yoneprivate 5b9189d
refactor: 백킹트랙 생성 및 수정 요청 DTO 분리 (#184)
on1yoneprivate File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
27 changes: 27 additions & 0 deletions
27
src/main/java/com/mr/domain/backingtrack/dto/req/BackingTrackUploadUrlRequest.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| package com.mr.domain.backingtrack.dto.req; | ||
|
|
||
| import com.mr.global.file.s3.dto.FileUploadCommand; | ||
| import jakarta.validation.constraints.NotBlank; | ||
| import jakarta.validation.constraints.NotNull; | ||
| import jakarta.validation.constraints.Positive; | ||
|
|
||
| public record BackingTrackUploadUrlRequest( | ||
|
|
||
| @NotBlank(message = "파일명은 필수입니다.") | ||
| String fileName, | ||
|
|
||
| @NotBlank(message = "Content-Type은 필수입니다.") | ||
| String contentType, | ||
|
|
||
| @NotNull(message = "파일 크기는 필수입니다.") | ||
| @Positive(message = "파일 크기는 0보다 커야 합니다.") | ||
| Long fileSize | ||
| ) { | ||
| public FileUploadCommand toCommand() { | ||
| return new FileUploadCommand( | ||
| fileName, | ||
| contentType, | ||
| fileSize | ||
| ); | ||
| } | ||
| } |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/mr/domain/backingtrack/dto/res/BackingTrackUploadUrlResponse.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package com.mr.domain.backingtrack.dto.res; | ||
|
|
||
| import com.mr.global.file.s3.dto.PresignedUrlUpload; | ||
|
|
||
| import java.time.Instant; | ||
| import java.util.Map; | ||
|
|
||
| public record BackingTrackUploadUrlResponse( | ||
| String objectKey, | ||
| String uploadUrl, | ||
| Instant expiresAt, | ||
| Map<String, String> requiredHeaders | ||
| ) { | ||
| public static BackingTrackUploadUrlResponse from( | ||
| PresignedUrlUpload presignedUpload | ||
| ) { | ||
| return new BackingTrackUploadUrlResponse( | ||
| presignedUpload.objectKey(), | ||
| presignedUpload.uploadUrl(), | ||
| presignedUpload.expiresAt(), | ||
| presignedUpload.requiredHeaders() | ||
| ); | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.