콘텐츠 API 추가

This commit is contained in:
2023-08-03 20:36:37 +09:00
parent 5d6eb5da4f
commit 1fe5309fdc
55 changed files with 2740 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
package kr.co.vividnext.sodalive.content
import com.querydsl.core.annotations.QueryProjection
import kr.co.vividnext.sodalive.content.comment.GetAudioContentCommentListItem
import kr.co.vividnext.sodalive.content.order.OrderType
data class GetAudioContentDetailResponse(
val contentId: Long,
val title: String,
val detail: String,
val coverImageUrl: String,
val contentUrl: String,
val themeStr: String,
val tag: String,
val price: Int,
val duration: String,
val isAdult: Boolean,
val isMosaic: Boolean,
val existOrdered: Boolean,
val orderType: OrderType?,
val remainingTime: String?,
val creatorOtherContentList: List<OtherContentResponse>,
val sameThemeOtherContentList: List<OtherContentResponse>,
val isCommentAvailable: Boolean,
val isLike: Boolean,
val likeCount: Int,
val commentList: List<GetAudioContentCommentListItem>,
val commentCount: Int,
val creator: AudioContentCreator
)
data class OtherContentResponse @QueryProjection constructor(
val contentId: Long,
val title: String,
val coverUrl: String
)
data class AudioContentCreator(
val creatorId: Long,
val nickname: String,
val profileImageUrl: String,
val isFollowing: Boolean
)