Skip to content

Commit c3ac52e

Browse files
committed
[BOOK-212] chore: 내 서재 API 변경 사항 반영
1 parent a343ffd commit c3ac52e

File tree

5 files changed

+10
-10
lines changed
  • core
  • feature
    • library/src/main/kotlin/com/ninecraft/booket/feature/library
    • search/src/main/kotlin/com/ninecraft/booket/feature/search/library

5 files changed

+10
-10
lines changed

core/data/impl/src/main/kotlin/com/ninecraft/booket/core/data/impl/mapper/ResponseToModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ internal fun LibraryBookSummary.toModel(): LibraryBookSummaryModel {
130130
return LibraryBookSummaryModel(
131131
userBookId = userBookId,
132132
userId = userId,
133-
bookIsbn = bookIsbn,
133+
isbn13 = isbn13,
134134
bookTitle = bookTitle,
135135
bookAuthor = bookAuthor,
136136
status = status,
137-
recordCount = recordCount,
138137
coverImageUrl = coverImageUrl,
139138
publisher = publisher,
140139
createdAt = createdAt,
141140
updatedAt = updatedAt,
141+
recordCount = recordCount,
142142
)
143143
}
144144

core/model/src/main/kotlin/com/ninecraft/booket/core/model/LibraryModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ data class LibraryBooksModel(
2121
data class LibraryBookSummaryModel(
2222
val userBookId: String = "",
2323
val userId: String = "",
24-
val bookIsbn: String = "",
24+
val isbn13: String = "",
2525
val bookTitle: String = "",
2626
val bookAuthor: String = "",
2727
val status: String = "",

core/network/src/main/kotlin/com/ninecraft/booket/core/network/response/LibraryResponse.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ data class LibraryBookSummary(
3131
val userBookId: String,
3232
@SerialName("userId")
3333
val userId: String,
34-
@SerialName("bookIsbn")
35-
val bookIsbn: String,
34+
@SerialName("isbn13")
35+
val isbn13: String,
3636
@SerialName("bookTitle")
3737
val bookTitle: String,
3838
@SerialName("bookAuthor")
3939
val bookAuthor: String,
4040
@SerialName("status")
4141
val status: String,
42-
@SerialName("recordCount")
43-
val recordCount: Int,
4442
@SerialName("coverImageUrl")
4543
val coverImageUrl: String,
4644
@SerialName("publisher")
@@ -49,6 +47,8 @@ data class LibraryBookSummary(
4947
val createdAt: String,
5048
@SerialName("updatedAt")
5149
val updatedAt: String,
50+
@SerialName("recordCount")
51+
val recordCount: Int,
5252
)
5353

5454
@Serializable

feature/library/src/main/kotlin/com/ninecraft/booket/feature/library/LibraryUi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ internal fun LibraryContent(
128128
LibraryBookItem(
129129
book = it,
130130
onBookClick = {
131-
state.eventSink(LibraryUiEvent.OnBookClick(it.userBookId, it.bookIsbn))
131+
state.eventSink(LibraryUiEvent.OnBookClick(it.userBookId, it.isbn13))
132132
},
133133
)
134134
Box(

feature/search/src/main/kotlin/com/ninecraft/booket/feature/search/library/LibrarySearchUi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ internal fun LibrarySearchContent(
188188
) {
189189
items(
190190
count = state.books.size,
191-
key = { index -> state.books[index].bookIsbn },
191+
key = { index -> state.books[index].isbn13 },
192192
) { index ->
193193
Column {
194194
LibraryBookItem(
@@ -197,7 +197,7 @@ internal fun LibrarySearchContent(
197197
state.eventSink(
198198
LibrarySearchUiEvent.OnBookClick(
199199
userBookId = book.userBookId,
200-
isbn13 = book.bookIsbn,
200+
isbn13 = book.isbn13,
201201
),
202202
)
203203
},

0 commit comments

Comments
 (0)