-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
raisedragon-external/src/main/kotlin/com/whatever/raisedragon/s3/PresignedURL.kt
This file contains 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,5 @@ | ||
package com.whatever.raisedragon.s3 | ||
|
||
data class PresignedURL( | ||
val value: String | ||
) |
12 changes: 12 additions & 0 deletions
12
raisedragon-external/src/main/kotlin/com/whatever/raisedragon/s3/S3Agent.kt
This file contains 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,12 @@ | ||
package com.whatever.raisedragon.s3 | ||
|
||
import org.springframework.web.multipart.MultipartFile | ||
|
||
interface S3Agent { | ||
|
||
/** | ||
* @param multipartFile 사용자가 전송한 정적파일입니다. | ||
* 해당 파일을 S3에 업로드 한 이후, 해당 파일에 접근할 수 있는 PresignedURL을 반환해주세요. | ||
*/ | ||
fun upload(multipartFile: MultipartFile): PresignedURL | ||
} |