-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: storage image 서비스에 공통 인터페이스 적용
- Loading branch information
1 parent
b66d4ff
commit 9db3244
Showing
3 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
6 changes: 4 additions & 2 deletions
6
storage/src/main/kotlin/com/few/storage/image/service/GetPreSignedImageUrlService.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,5 +1,7 @@ | ||
package com.few.storage.image.service | ||
|
||
fun interface GetPreSignedImageUrlService { | ||
fun execute(image: String): String? | ||
import com.few.storage.GetPreSignedObjectUrlService | ||
|
||
fun interface GetPreSignedImageUrlService : GetPreSignedObjectUrlService { | ||
override fun execute(image: String): String? | ||
} |
5 changes: 3 additions & 2 deletions
5
storage/src/main/kotlin/com/few/storage/image/service/PutImageService.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,8 +1,9 @@ | ||
package com.few.storage.image.service | ||
|
||
import com.few.storage.PutObjectService | ||
import com.few.storage.image.client.dto.ImageWriteResponse | ||
import java.io.File | ||
|
||
fun interface PutImageService { | ||
fun execute(name: String, file: File): ImageWriteResponse? | ||
fun interface PutImageService : PutObjectService<ImageWriteResponse> { | ||
override fun execute(name: String, file: File): ImageWriteResponse? | ||
} |
6 changes: 4 additions & 2 deletions
6
storage/src/main/kotlin/com/few/storage/image/service/RemoveImageService.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,5 +1,7 @@ | ||
package com.few.storage.image.service | ||
|
||
fun interface RemoveImageService { | ||
fun execute(image: String): Boolean | ||
import com.few.storage.RemoveObjectService | ||
|
||
fun interface RemoveImageService : RemoveObjectService { | ||
override fun execute(image: String): Boolean | ||
} |