Skip to content

Commit b5eb72e

Browse files
committed
[BOOK-161] chore: code style check success
1 parent b3dd082 commit b5eb72e

File tree

9 files changed

+16
-19
lines changed

9 files changed

+16
-19
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ internal fun LibraryResponse.toModel(): LibraryModel {
9999
totalCount = totalCount,
100100
beforeReadingCount = beforeReadingCount,
101101
readingCount = readingCount,
102-
completedCount = completedCount
102+
completedCount = completedCount,
103103
)
104104
}
105105

106106
internal fun LibraryBooks.toModel(): LibraryBooksModel {
107107
return LibraryBooksModel(
108108
content = content.map { it.toModel() },
109-
page = page.toModel()
109+
page = page.toModel(),
110110
)
111111
}
112112

@@ -122,7 +122,7 @@ internal fun LibraryBookSummary.toModel(): LibraryBookSummaryModel {
122122
coverImageUrl = coverImageUrl,
123123
publisher = publisher,
124124
createdAt = createdAt,
125-
updatedAt = updatedAt
125+
updatedAt = updatedAt,
126126
)
127127
}
128128

@@ -131,6 +131,6 @@ internal fun PageInfo.toModel(): PageInfoModel {
131131
size = size,
132132
number = number,
133133
totalElements = totalElements,
134-
totalPages = totalPages
134+
totalPages = totalPages,
135135
)
136136
}

core/data/impl/src/main/kotlin/com/ninecraft/booket/core/data/impl/repository/DefaultBookRepository.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.ninecraft.booket.core.data.impl.repository
33
import com.ninecraft.booket.core.common.utils.runSuspendCatching
44
import com.ninecraft.booket.core.data.api.repository.BookRepository
55
import com.ninecraft.booket.core.data.impl.mapper.toModel
6-
import com.ninecraft.booket.core.model.LibraryModel
76
import com.ninecraft.booket.core.network.request.BookUpsertRequest
87
import com.ninecraft.booket.core.network.service.ReedService
98
import javax.inject.Inject

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ data class LibraryModel(
88
val totalCount: Int = 0,
99
val beforeReadingCount: Int = 0,
1010
val readingCount: Int = 0,
11-
val completedCount: Int = 0
11+
val completedCount: Int = 0,
1212
)
1313

1414
@Stable
1515
data class LibraryBooksModel(
1616
val content: List<LibraryBookSummaryModel> = emptyList(),
17-
val page: PageInfoModel = PageInfoModel()
17+
val page: PageInfoModel = PageInfoModel(),
1818
)
1919

2020
@Stable
@@ -29,13 +29,13 @@ data class LibraryBookSummaryModel(
2929
val coverImageUrl: String = "",
3030
val publisher: String = "",
3131
val createdAt: String = "",
32-
val updatedAt: String = ""
32+
val updatedAt: String = "",
3333
)
3434

3535
@Stable
3636
data class PageInfoModel(
3737
val size: Int = 0,
3838
val number: Int = 0,
3939
val totalElements: Int = 0,
40-
val totalPages: Int = 0
40+
val totalPages: Int = 0,
4141
)

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
@@ -14,15 +14,15 @@ data class LibraryResponse(
1414
@SerialName("readingCount")
1515
val readingCount: Int,
1616
@SerialName("completedCount")
17-
val completedCount: Int
17+
val completedCount: Int,
1818
)
1919

2020
@Serializable
2121
data class LibraryBooks(
2222
@SerialName("content")
2323
val content: List<LibraryBookSummary>,
2424
@SerialName("page")
25-
val page: PageInfo
25+
val page: PageInfo,
2626
)
2727

2828
@Serializable
@@ -48,7 +48,7 @@ data class LibraryBookSummary(
4848
@SerialName("createdAt")
4949
val createdAt: String,
5050
@SerialName("updatedAt")
51-
val updatedAt: String
51+
val updatedAt: String,
5252
)
5353

5454
@Serializable
@@ -60,5 +60,5 @@ data class PageInfo(
6060
@SerialName("totalElements")
6161
val totalElements: Int,
6262
@SerialName("totalPages")
63-
val totalPages: Int
63+
val totalPages: Int,
6464
)

core/network/src/main/kotlin/com/ninecraft/booket/core/network/service/ReedService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ interface ReedService {
5959
@Query("status") status: String? = null,
6060
@Query("page") page: Int,
6161
@Query("size") size: Int,
62-
@Query("sort") sort: String = "date_desc"
62+
@Query("sort") sort: String = "date_desc",
6363
): LibraryResponse
6464
}

feature/detail/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ ksp {
1616

1717
dependencies {
1818
implementations(
19-
libs.logger
19+
libs.logger,
2020
)
2121
}

feature/detail/src/main/kotlin/com/ninecraft/booket/feature/detail/BookDetailPresenter.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,3 @@ class BookDetailPresenter @AssistedInject constructor(
9494
): BookDetailPresenter
9595
}
9696
}
97-
98-

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class LibraryPresenter @AssistedInject constructor(
134134
getLibraryBooks(
135135
status = currentFilter.getApiValue(),
136136
page = START_INDEX,
137-
size = PAGE_SIZE
137+
size = PAGE_SIZE,
138138
)
139139
}
140140
}

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ include(
4242
":feature:search",
4343
":feature:settings",
4444
":feature:webview",
45-
":feature:detail"
45+
":feature:detail",
4646
)

0 commit comments

Comments
 (0)