-
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.
- Loading branch information
Showing
12 changed files
with
57 additions
and
51 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
8 changes: 4 additions & 4 deletions
8
src/main/kotlin/com/devooks/backend/ebook/v1/dto/response/CreateEbookInquiryResponse.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,14 @@ | ||
package com.devooks.backend.ebook.v1.dto.response | ||
|
||
import com.devooks.backend.ebook.v1.domain.EbookInquiry | ||
import com.devooks.backend.ebook.v1.dto.EbookInquiryDto | ||
import com.devooks.backend.ebook.v1.dto.EbookInquiryDto.Companion.toDto | ||
import com.devooks.backend.ebook.v1.dto.EbookInquiryView | ||
import com.devooks.backend.ebook.v1.dto.EbookInquiryView.Companion.toEbookInquiryView | ||
|
||
data class CreateEbookInquiryResponse( | ||
val ebookInquiry: EbookInquiryDto, | ||
val ebookInquiry: EbookInquiryView, | ||
) { | ||
companion object { | ||
fun EbookInquiry.toCreateEbookInquiryResponse() = | ||
CreateEbookInquiryResponse(toDto()) | ||
CreateEbookInquiryResponse(toEbookInquiryView()) | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
src/main/kotlin/com/devooks/backend/ebook/v1/dto/response/GetEbookInquiriesResponse.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,14 @@ | ||
package com.devooks.backend.ebook.v1.dto.response | ||
|
||
import com.devooks.backend.ebook.v1.domain.EbookInquiry | ||
import com.devooks.backend.ebook.v1.dto.EbookInquiryDto | ||
import com.devooks.backend.ebook.v1.dto.EbookInquiryDto.Companion.toDto | ||
import com.devooks.backend.ebook.v1.dto.EbookInquiryView | ||
import com.devooks.backend.ebook.v1.dto.EbookInquiryView.Companion.toEbookInquiryView | ||
|
||
data class GetEbookInquiriesResponse( | ||
val ebookInquiryList: List<EbookInquiryDto>, | ||
val ebookInquiryList: List<EbookInquiryView>, | ||
) { | ||
companion object { | ||
fun List<EbookInquiry>.toGetEbookInquiriesResponse() = | ||
GetEbookInquiriesResponse(map { it.toDto() }) | ||
GetEbookInquiriesResponse(map { it.toEbookInquiryView() }) | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
src/main/kotlin/com/devooks/backend/ebook/v1/dto/response/ModifyEbookInquiryResponse.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,14 @@ | ||
package com.devooks.backend.ebook.v1.dto.response | ||
|
||
import com.devooks.backend.ebook.v1.domain.EbookInquiry | ||
import com.devooks.backend.ebook.v1.dto.EbookInquiryDto | ||
import com.devooks.backend.ebook.v1.dto.EbookInquiryDto.Companion.toDto | ||
import com.devooks.backend.ebook.v1.dto.EbookInquiryView | ||
import com.devooks.backend.ebook.v1.dto.EbookInquiryView.Companion.toEbookInquiryView | ||
|
||
data class ModifyEbookInquiryResponse( | ||
val ebookInquiry: EbookInquiryDto | ||
val ebookInquiry: EbookInquiryView | ||
) { | ||
companion object { | ||
fun EbookInquiry.toModifyEbookInquiryResponse() = | ||
ModifyEbookInquiryResponse(toDto()) | ||
ModifyEbookInquiryResponse(toEbookInquiryView()) | ||
} | ||
} |
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
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