feat(content-all): 전체 탭 도메인 모델을 추가한다
This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
package kr.co.vividnext.sodalive.v2.content.all.domain
|
||||||
|
|
||||||
|
import kr.co.vividnext.sodalive.creator.admin.content.series.SeriesPublishedDaysOfWeek
|
||||||
|
import kr.co.vividnext.sodalive.v2.common.domain.ContentSort
|
||||||
|
|
||||||
|
data class MainContentAll(
|
||||||
|
val type: MainContentAllType,
|
||||||
|
val totalCount: Int,
|
||||||
|
val audios: List<MainContentAllAudio>,
|
||||||
|
val series: List<MainContentAllSeries>,
|
||||||
|
val sort: ContentSort,
|
||||||
|
val dayOfWeek: SeriesPublishedDaysOfWeek?,
|
||||||
|
val page: MainContentPage,
|
||||||
|
val hasNext: Boolean
|
||||||
|
)
|
||||||
|
|
||||||
|
data class MainContentAllAudio(
|
||||||
|
val audioContentId: Long,
|
||||||
|
val title: String,
|
||||||
|
val imageUrl: String?,
|
||||||
|
val price: Int,
|
||||||
|
val isAdult: Boolean,
|
||||||
|
val isPointAvailable: Boolean,
|
||||||
|
val isFirstContent: Boolean,
|
||||||
|
val isOriginalSeries: Boolean,
|
||||||
|
val creatorNickname: String
|
||||||
|
)
|
||||||
|
|
||||||
|
data class MainContentAllSeries(
|
||||||
|
val seriesId: Long,
|
||||||
|
val title: String,
|
||||||
|
val coverImageUrl: String?,
|
||||||
|
val creatorNickname: String,
|
||||||
|
val isOriginal: Boolean,
|
||||||
|
val isAdult: Boolean
|
||||||
|
)
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package kr.co.vividnext.sodalive.v2.content.all.domain
|
||||||
|
|
||||||
|
enum class MainContentAllType {
|
||||||
|
AUDIO,
|
||||||
|
SERIES,
|
||||||
|
ORIGINAL,
|
||||||
|
FREE,
|
||||||
|
POINT
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package kr.co.vividnext.sodalive.v2.content.all.domain
|
||||||
|
|
||||||
|
data class MainContentPage(
|
||||||
|
val page: Int,
|
||||||
|
val size: Int
|
||||||
|
) {
|
||||||
|
val offset: Long = page.toLong() * size
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user