feat: 콘텐츠 메인, 콘텐츠 랭킹 - 포인트 사용 가능 여부 추가

This commit is contained in:
Klaus 2025-06-10 11:14:48 +09:00
parent 8db5c6443d
commit 16a2b82ffd
7 changed files with 24 additions and 9 deletions

View File

@ -488,7 +488,8 @@ class AudioContentQueryRepositoryImpl(
member.profileImage.prepend("/").prepend(imageHost), member.profileImage.prepend("/").prepend(imageHost),
member.nickname, member.nickname,
audioContent.price, audioContent.price,
audioContent.duration audioContent.duration,
audioContent.isPointAvailable
) )
) )
.from(audioContent) .from(audioContent)
@ -557,7 +558,8 @@ class AudioContentQueryRepositoryImpl(
member.profileImage.prepend("/").prepend(imageHost), member.profileImage.prepend("/").prepend(imageHost),
member.nickname, member.nickname,
audioContent.price, audioContent.price,
audioContent.duration audioContent.duration,
audioContent.isPointAvailable
) )
) )
.from(audioContent) .from(audioContent)
@ -776,7 +778,8 @@ class AudioContentQueryRepositoryImpl(
member.profileImage.prepend("/").prepend(cloudfrontHost), member.profileImage.prepend("/").prepend(cloudfrontHost),
member.nickname, member.nickname,
audioContent.price, audioContent.price,
audioContent.duration audioContent.duration,
audioContent.isPointAvailable
) )
) )
.from(audioContent) .from(audioContent)
@ -896,7 +899,8 @@ class AudioContentQueryRepositoryImpl(
.prepend(imageHost), .prepend(imageHost),
member.nickname, member.nickname,
audioContent.price, audioContent.price,
audioContent.duration audioContent.duration,
audioContent.isPointAvailable
) )
) )
.from(audioContent) .from(audioContent)
@ -956,7 +960,8 @@ class AudioContentQueryRepositoryImpl(
member.profileImage.prepend("/").prepend(imageHost), member.profileImage.prepend("/").prepend(imageHost),
member.nickname, member.nickname,
audioContent.price, audioContent.price,
audioContent.duration audioContent.duration,
audioContent.isPointAvailable
) )
) )
.from(audioContentCurationItem) .from(audioContentCurationItem)
@ -1018,6 +1023,7 @@ class AudioContentQueryRepositoryImpl(
audioContent.duration, audioContent.duration,
member.id, member.id,
member.nickname, member.nickname,
audioContent.isPointAvailable,
member.profileImage.prepend("/").prepend(imageHost) member.profileImage.prepend("/").prepend(imageHost)
) )
) )

View File

@ -11,5 +11,6 @@ data class GetAudioContentMainItem @QueryProjection constructor(
@JsonProperty("creatorProfileImageUrl") val creatorProfileImageUrl: String, @JsonProperty("creatorProfileImageUrl") val creatorProfileImageUrl: String,
@JsonProperty("creatorNickname") val creatorNickname: String, @JsonProperty("creatorNickname") val creatorNickname: String,
@JsonProperty("price") val price: Int, @JsonProperty("price") val price: Int,
@JsonProperty("duration") val duration: String @JsonProperty("duration") val duration: String,
@JsonProperty("isPointAvailable") val isPointAvailable: Boolean
) )

View File

@ -18,5 +18,6 @@ data class GetAudioContentRankingItem @QueryProjection constructor(
@JsonProperty("duration") val duration: String, @JsonProperty("duration") val duration: String,
@JsonProperty("creatorId") val creatorId: Long, @JsonProperty("creatorId") val creatorId: Long,
@JsonProperty("creatorNickname") val creatorNickname: String, @JsonProperty("creatorNickname") val creatorNickname: String,
@JsonProperty("isPointAvailable") val isPointAvailable: Boolean,
@JsonProperty("creatorProfileImageUrl") val creatorProfileImageUrl: String @JsonProperty("creatorProfileImageUrl") val creatorProfileImageUrl: String
) )

View File

@ -94,7 +94,8 @@ class AudioContentCurationQueryRepository(private val queryFactory: JPAQueryFact
member.profileImage.prepend("/").prepend(cloudfrontHost), member.profileImage.prepend("/").prepend(cloudfrontHost),
member.nickname, member.nickname,
audioContent.price, audioContent.price,
audioContent.duration audioContent.duration,
audioContent.isPointAvailable
) )
) )
.from(audioContent) .from(audioContent)

View File

@ -97,7 +97,8 @@ class ContentMainTabTagCurationRepository(
member.profileImage.prepend("/").prepend(imageHost), member.profileImage.prepend("/").prepend(imageHost),
member.nickname, member.nickname,
audioContent.price, audioContent.price,
audioContent.duration audioContent.duration,
audioContent.isPointAvailable
) )
) )
.from(contentHashTagCurationItem) .from(contentHashTagCurationItem)

View File

@ -210,7 +210,8 @@ class OrderQueryRepositoryImpl(
.prepend(coverImageHost), .prepend(coverImageHost),
member.nickname, member.nickname,
audioContent.price, audioContent.price,
audioContent.duration audioContent.duration,
audioContent.isPointAvailable
) )
) )
.from(order) .from(order)

View File

@ -102,6 +102,7 @@ class RankingRepository(
audioContent.duration, audioContent.duration,
member.id, member.id,
member.nickname, member.nickname,
audioContent.isPointAvailable,
member.profileImage.prepend("/").prepend(imageHost) member.profileImage.prepend("/").prepend(imageHost)
) )
) )
@ -560,6 +561,7 @@ class RankingRepository(
audioContent.duration, audioContent.duration,
member.id, member.id,
member.nickname, member.nickname,
audioContent.isPointAvailable,
member.profileImage.prepend("/").prepend(imageHost) member.profileImage.prepend("/").prepend(imageHost)
) )
) )
@ -726,6 +728,7 @@ class RankingRepository(
audioContent.duration, audioContent.duration,
member.id, member.id,
member.nickname, member.nickname,
audioContent.isPointAvailable,
member.profileImage.prepend("/").prepend(imageHost) member.profileImage.prepend("/").prepend(imageHost)
) )
) )
@ -782,6 +785,7 @@ class RankingRepository(
audioContent.duration, audioContent.duration,
member.id, member.id,
member.nickname, member.nickname,
audioContent.isPointAvailable,
member.profileImage.prepend("/").prepend(imageHost) member.profileImage.prepend("/").prepend(imageHost)
) )
) )