-
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.
feat: #52 파일 업로드 기능 별도의 API로 분리, API 요청 시 이미지 파일 첨부 방식 변경
- Loading branch information
Showing
63 changed files
with
1,076 additions
and
384 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
common/common-file/src/main/kotlin/com/damaba/common_file/domain/DeleteFileEvent.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.damaba.common_file.domain | ||
|
||
data class DeleteFileEvent(val urls: List<String>) { | ||
constructor(url: String) : this(listOf(url)) | ||
} |
2 changes: 1 addition & 1 deletion
2
...damaba/common_file/domain/UploadedFile.kt → ...lin/com/damaba/common_file/domain/File.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,6 +1,6 @@ | ||
package com.damaba.common_file.domain | ||
|
||
data class UploadedFile( | ||
data class File( | ||
val name: String, | ||
val url: String, | ||
) |
4 changes: 2 additions & 2 deletions
4
common/common-file/src/main/kotlin/com/damaba/common_file/domain/FileUploadRollbackEvent.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,5 @@ | ||
package com.damaba.common_file.domain | ||
|
||
data class FileUploadRollbackEvent(val uploadedFiles: List<UploadedFile>) { | ||
constructor(uploadedFile: UploadedFile) : this(listOf(uploadedFile)) | ||
data class FileUploadRollbackEvent(val uploadedFiles: List<File>) { | ||
constructor(uploadedFile: File) : this(listOf(uploadedFile)) | ||
} |
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
20 changes: 20 additions & 0 deletions
20
damaba/src/main/kotlin/com/damaba/damaba/adapter/inbound/common/dto/AddressRequest.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,20 @@ | ||
package com.damaba.damaba.adapter.inbound.common.dto | ||
|
||
import com.damaba.damaba.domain.common.Address | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class AddressRequest( | ||
@Schema(description = "시/도 이름", example = "경기") | ||
val sido: String, | ||
|
||
@Schema(description = "시/군/구 이름", example = "성남시 분당구") | ||
val sigungu: String, | ||
|
||
@Schema(description = "도로명 주소", example = "경기 성남시 분당구 판교역로 166") | ||
val roadAddress: String, | ||
|
||
@Schema(description = "지번 주소", example = "경기 성남시 분당구 백현동 532") | ||
val jibunAddress: String, | ||
) { | ||
fun toDomain(): Address = Address(sido, sigungu, roadAddress, jibunAddress) | ||
} |
14 changes: 14 additions & 0 deletions
14
damaba/src/main/kotlin/com/damaba/damaba/adapter/inbound/common/dto/FileRequest.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,14 @@ | ||
package com.damaba.damaba.adapter.inbound.common.dto | ||
|
||
import com.damaba.common_file.domain.File | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class FileRequest( | ||
@Schema(description = "파일 이름", example = "apple.jpg") | ||
val name: String, | ||
|
||
@Schema(description = "파일 URL", example = "https://damaba-file-server/apple.jpg") | ||
val url: String, | ||
) { | ||
fun toDomain(): File = File(name, url) | ||
} |
11 changes: 11 additions & 0 deletions
11
damaba/src/main/kotlin/com/damaba/damaba/adapter/inbound/common/dto/FileResponse.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,11 @@ | ||
package com.damaba.damaba.adapter.inbound.common.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class FileResponse( | ||
@Schema(description = "파일 이름", example = "apple.jpg") | ||
val name: String, | ||
|
||
@Schema(description = "파일 URL", example = "https://damaba-file-server/apple.jpg") | ||
val url: String, | ||
) |
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
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
14 changes: 14 additions & 0 deletions
14
damaba/src/main/kotlin/com/damaba/damaba/adapter/inbound/region/dto/RegionRequest.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,14 @@ | ||
package com.damaba.damaba.adapter.inbound.region.dto | ||
|
||
import com.damaba.damaba.domain.region.Region | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class RegionRequest( | ||
@Schema(description = "지역 카테고리", example = "서울") | ||
val category: String, | ||
|
||
@Schema(description = "지역 이름", example = "강남구") | ||
val name: String, | ||
) { | ||
fun toDomain() = Region(category, name) | ||
} |
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
5 changes: 0 additions & 5 deletions
5
...ba/src/main/kotlin/com/damaba/damaba/application/port/outbound/common/PublishEventPort.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.