Skip to content

Commit

Permalink
feat: storage image 서비스에 공통 인터페이스 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
belljun3395 committed Jul 1, 2024
1 parent b66d4ff commit 9db3244
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
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?
}
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?
}
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
}

0 comments on commit 9db3244

Please sign in to comment.