feat(creator): 채널 홈 응답 계약을 보정한다
This commit is contained in:
@@ -21,6 +21,7 @@ data class CreatorChannelHome(
|
||||
|
||||
data class CreatorChannelCreator(
|
||||
val creatorId: Long,
|
||||
val characterId: Long?,
|
||||
val nickname: String,
|
||||
val profileImageUrl: String,
|
||||
val followerCount: Int,
|
||||
@@ -54,12 +55,9 @@ data class CreatorChannelAudioContent(
|
||||
)
|
||||
|
||||
data class CreatorChannelDonation(
|
||||
val donationId: Long,
|
||||
val memberId: Long,
|
||||
val nickname: String,
|
||||
val profileImageUrl: String,
|
||||
val can: Int,
|
||||
val isSecret: Boolean,
|
||||
val message: String,
|
||||
val createdAt: LocalDateTime
|
||||
)
|
||||
@@ -76,11 +74,8 @@ data class CreatorChannelSeries(
|
||||
val seriesId: Long,
|
||||
val title: String,
|
||||
val coverImageUrl: String,
|
||||
val publishedDaysOfWeek: String,
|
||||
val isComplete: Boolean,
|
||||
val numberOfContent: Int,
|
||||
val isNew: Boolean,
|
||||
val isPopular: Boolean,
|
||||
val isOriginal: Boolean
|
||||
)
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ data class CreatorChannelHomeResponse(
|
||||
|
||||
data class CreatorChannelCreatorResponse(
|
||||
val creatorId: Long,
|
||||
val characterId: Long?,
|
||||
val nickname: String,
|
||||
val profileImageUrl: String,
|
||||
val followerCount: Int,
|
||||
@@ -71,6 +72,7 @@ data class CreatorChannelCreatorResponse(
|
||||
fun from(creator: CreatorChannelCreator): CreatorChannelCreatorResponse {
|
||||
return CreatorChannelCreatorResponse(
|
||||
creatorId = creator.creatorId,
|
||||
characterId = creator.characterId,
|
||||
nickname = creator.nickname,
|
||||
profileImageUrl = creator.profileImageUrl,
|
||||
followerCount = creator.followerCount,
|
||||
@@ -141,25 +143,18 @@ data class CreatorChannelAudioContentResponse(
|
||||
}
|
||||
|
||||
data class CreatorChannelDonationResponse(
|
||||
val donationId: Long,
|
||||
val memberId: Long,
|
||||
val nickname: String,
|
||||
val profileImageUrl: String,
|
||||
val can: Int,
|
||||
@JsonProperty("isSecret")
|
||||
val isSecret: Boolean,
|
||||
val message: String,
|
||||
val createdAtUtc: String
|
||||
) {
|
||||
companion object {
|
||||
fun from(donation: CreatorChannelDonation): CreatorChannelDonationResponse {
|
||||
return CreatorChannelDonationResponse(
|
||||
donationId = donation.donationId,
|
||||
memberId = donation.memberId,
|
||||
nickname = donation.nickname,
|
||||
profileImageUrl = donation.profileImageUrl,
|
||||
can = donation.can,
|
||||
isSecret = donation.isSecret,
|
||||
message = donation.message,
|
||||
createdAtUtc = donation.createdAt.toUtcIso()
|
||||
)
|
||||
@@ -189,14 +184,9 @@ data class CreatorChannelSeriesResponse(
|
||||
val seriesId: Long,
|
||||
val title: String,
|
||||
val coverImageUrl: String,
|
||||
val publishedDaysOfWeek: String,
|
||||
@JsonProperty("isComplete")
|
||||
val isComplete: Boolean,
|
||||
val numberOfContent: Int,
|
||||
@JsonProperty("isNew")
|
||||
val isNew: Boolean,
|
||||
@JsonProperty("isPopular")
|
||||
val isPopular: Boolean,
|
||||
@JsonProperty("isOriginal")
|
||||
val isOriginal: Boolean
|
||||
) {
|
||||
@@ -206,11 +196,8 @@ data class CreatorChannelSeriesResponse(
|
||||
seriesId = series.seriesId,
|
||||
title = series.title,
|
||||
coverImageUrl = series.coverImageUrl,
|
||||
publishedDaysOfWeek = series.publishedDaysOfWeek,
|
||||
isComplete = series.isComplete,
|
||||
numberOfContent = series.numberOfContent,
|
||||
isNew = series.isNew,
|
||||
isPopular = series.isPopular,
|
||||
isOriginal = series.isOriginal
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user