-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: presigned url VO 삭제 및 yml 파일 통합
- Loading branch information
Showing
7 changed files
with
15 additions
and
32 deletions.
There are no files selected for viewing
4 changes: 1 addition & 3 deletions
4
module-domain/src/main/kotlin/site/yourevents/s3/port/in/PreSignedUrlUseCase.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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
package site.yourevents.s3.port.`in` | ||
|
||
import site.yourevents.s3.vo.PreSignedUrlVO | ||
|
||
interface PreSignedUrlUseCase { | ||
fun getPreSignedUrl(imageName: String): PreSignedUrlVO | ||
fun getPreSignedUrl(imageName: String): String | ||
} |
2 changes: 0 additions & 2 deletions
2
module-domain/src/main/kotlin/site/yourevents/s3/port/out/PreSignedUrlPort.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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
package site.yourevents.s3.port.out | ||
|
||
import site.yourevents.s3.vo.PreSignedUrlVO | ||
|
||
interface PreSignedUrlPort { | ||
fun getPreSignedUrl(imageName: String): String | ||
} |
8 changes: 2 additions & 6 deletions
8
module-domain/src/main/kotlin/site/yourevents/s3/service/PreSignedUrlService.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 |
---|---|---|
@@ -1,19 +1,15 @@ | ||
package site.yourevents.s3.service | ||
|
||
import jakarta.transaction.Transactional | ||
import org.springframework.context.annotation.ComponentScan | ||
import org.springframework.stereotype.Service | ||
import site.yourevents.s3.port.`in`.PreSignedUrlUseCase | ||
import site.yourevents.s3.port.out.PreSignedUrlPort | ||
import site.yourevents.s3.vo.PreSignedUrlVO | ||
|
||
@Service | ||
@Transactional | ||
class PreSignedUrlService( | ||
private val preSignedUrlPort: PreSignedUrlPort | ||
) : PreSignedUrlUseCase { | ||
override fun getPreSignedUrl(imageName: String): PreSignedUrlVO = | ||
PreSignedUrlVO.from( | ||
preSignedUrlPort.getPreSignedUrl(imageName) | ||
) | ||
override fun getPreSignedUrl(imageName: String): String = | ||
preSignedUrlPort.getPreSignedUrl(imageName) | ||
} |
9 changes: 0 additions & 9 deletions
9
module-domain/src/main/kotlin/site/yourevents/s3/vo/PreSignedUrlVO.kt
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
module-infrastructure/s3/src/main/resources/application.yml
This file was deleted.
Oops, something went wrong.
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
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