Skip to content

Commit

Permalink
Add S3Agent Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Diger committed Dec 9, 2023
1 parent 839bd46 commit eb67b5a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
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
)
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
}

0 comments on commit eb67b5a

Please sign in to comment.