generated from AND-SOPT-ANDROID/and-sopt-android-template
-
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/#8: 내 취미 조회 dto, domain model 추가
- Loading branch information
1 parent
eedd71c
commit 639101e
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
data/src/main/java/org/sopt/and/data/dto/response/MyHobbyResponseDto.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,15 @@ | ||
package org.sopt.and.data.dto.response | ||
|
||
import kotlinx.serialization.Serializable | ||
import org.sopt.and.domain.model.MyHobbyResponse | ||
|
||
@Serializable | ||
data class MyHobbyResponseDto( | ||
val hobby: String | ||
) { | ||
fun toDomainModel(): MyHobbyResponse { | ||
return MyHobbyResponse( | ||
hobby = hobby | ||
) | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
domain/src/main/java/org/sopt/and/domain/model/MyHobbyResponse.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 org.sopt.and.domain.model | ||
|
||
data class MyHobbyResponse( | ||
val hobby: String | ||
) |