-
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(damaba): #66 class mapping 기능을 MapStruct 사용하도록 리팩토링
- Loading branch information
Showing
30 changed files
with
213 additions
and
295 deletions.
There are no files selected for viewing
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: 0 additions & 14 deletions
14
damaba/src/main/kotlin/com/damaba/damaba/adapter/inbound/common/dto/FileRequest.kt
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
damaba/src/main/kotlin/com/damaba/damaba/adapter/inbound/common/dto/FileResponse.kt
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
damaba/src/main/kotlin/com/damaba/damaba/adapter/inbound/common/dto/ImageRequest.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 ImageRequest( | ||
@Schema(description = "Image name", example = "apple.jpg") | ||
val name: String, | ||
|
||
@Schema(description = "Image url", example = "https://damaba-file-server/apple.jpg") | ||
val url: String, | ||
) |
11 changes: 11 additions & 0 deletions
11
damaba/src/main/kotlin/com/damaba/damaba/adapter/inbound/common/dto/ImageResponse.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 ImageResponse( | ||
@Schema(description = "Image name", example = "apple.jpg") | ||
val name: String, | ||
|
||
@Schema(description = "Image 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
19 changes: 0 additions & 19 deletions
19
...n/kotlin/com/damaba/damaba/adapter/inbound/promotion/dto/PromotionActiveRegionResponse.kt
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
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
8 changes: 1 addition & 7 deletions
8
damaba/src/main/kotlin/com/damaba/damaba/adapter/inbound/region/dto/RegionGroupsResponse.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,14 +1,8 @@ | ||
package com.damaba.damaba.adapter.inbound.region.dto | ||
|
||
import com.damaba.damaba.domain.region.RegionGroup | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class RegionGroupsResponse( | ||
@Schema(description = "Region group list") | ||
val regionGroups: List<RegionGroupResponse>, | ||
) { | ||
companion object { | ||
fun from(regionsGroups: List<RegionGroup>) = | ||
RegionGroupsResponse(regionsGroups.map { regionGroup -> RegionGroupResponse.from(regionGroup) }) | ||
} | ||
} | ||
) |
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
11 changes: 11 additions & 0 deletions
11
damaba/src/main/kotlin/com/damaba/damaba/adapter/inbound/region/dto/RegionResponse.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.region.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class RegionResponse( | ||
@Schema(description = "지역 카테고리", example = "서울") | ||
val category: String, | ||
|
||
@Schema(description = "지역 이름", example = "강남구") | ||
val name: 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
Oops, something went wrong.