콘텐츠 리스트 - 가격과 시간 추가

This commit is contained in:
Klaus 2024-02-13 03:17:34 +09:00
parent d32f503633
commit 1d904c5cde
5 changed files with 18 additions and 22 deletions

View File

@ -344,7 +344,9 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
audioContent.title,
member.id,
member.profileImage.prepend("/").prepend(cloudfrontHost),
member.nickname
member.nickname,
audioContent.price,
audioContent.duration
)
)
.from(audioContent)
@ -416,7 +418,9 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
audioContent.title,
member.id,
member.profileImage.prepend("/").prepend(cloudfrontHost),
member.nickname
member.nickname,
audioContent.price,
audioContent.duration
)
)
.from(audioContent)
@ -519,7 +523,9 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
member.profileImage
.prepend("/")
.prepend(cloudfrontHost),
member.nickname
member.nickname,
audioContent.price,
audioContent.duration
)
)
.from(audioContent)

View File

@ -9,5 +9,7 @@ data class GetAudioContentMainItem @QueryProjection constructor(
@JsonProperty("title") val title: String,
@JsonProperty("creatorId") val creatorId: Long,
@JsonProperty("creatorProfileImageUrl") val creatorProfileImageUrl: String,
@JsonProperty("creatorNickname") val creatorNickname: String
@JsonProperty("creatorNickname") val creatorNickname: String,
@JsonProperty("price") val price: Int,
@JsonProperty("duration") val duration: String
)

View File

@ -1,16 +0,0 @@
package kr.co.vividnext.sodalive.content.main
import com.fasterxml.jackson.annotation.JsonProperty
import kr.co.vividnext.sodalive.content.main.banner.GetAudioContentBannerResponse
import kr.co.vividnext.sodalive.content.main.curation.GetAudioContentCurationResponse
data class GetAudioContentMainResponse(
@JsonProperty("newContentUploadCreatorList") val newContentUploadCreatorList: List<GetNewContentUploadCreator>,
@JsonProperty("bannerList") val bannerList: List<GetAudioContentBannerResponse>,
@JsonProperty("orderList") val orderList: List<GetAudioContentMainItem>,
@JsonProperty("themeList") val themeList: List<String>,
@JsonProperty("newContentList") val newContentList: List<GetAudioContentMainItem>,
@JsonProperty("curationList") val curationList: List<GetAudioContentCurationResponse>,
@JsonProperty("contentRankingSortTypeList") val contentRankingSortTypeList: List<String>,
@JsonProperty("contentRanking") val contentRanking: GetAudioContentRanking
)

View File

@ -59,7 +59,9 @@ class AudioContentCurationQueryRepository(private val queryFactory: JPAQueryFact
audioContent.title,
member.id,
member.profileImage.prepend("/").prepend(cloudfrontHost),
member.nickname
member.nickname,
audioContent.price,
audioContent.duration
)
)
.from(audioContent)

View File

@ -192,7 +192,9 @@ class OrderQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : Orde
member.profileImage
.prepend("/")
.prepend(coverImageHost),
member.nickname
member.nickname,
audioContent.price,
audioContent.duration
)
)
.from(order)