feat(recommend): 첫 오디오 콘텐츠 가격을 조회한다

This commit is contained in:
2026-06-01 23:31:03 +09:00
parent 3a17941ec6
commit b99a406248
4 changed files with 16 additions and 8 deletions

View File

@@ -394,6 +394,7 @@ class DefaultHomeRecommendationQueryRepository(
select ac.id as content_id,
ac.member_id as creator_id,
ac.title as title,
ac.price as price,
ac.cover_image as cover_image,
ac.release_date as release_date,
ac.is_active as is_active,
@@ -422,6 +423,7 @@ class DefaultHomeRecommendationQueryRepository(
m.nickname as creator_nickname,
m.profile_image as creator_profile_image,
ec.title as title,
ec.price as price,
ec.cover_image as cover_image,
ec.release_date as release_date,
ec.is_point_available as is_point_available,
@@ -473,11 +475,12 @@ class DefaultHomeRecommendationQueryRepository(
creatorNickname = row[2] as String,
creatorProfileImage = row[3] as String?,
title = row[4] as String,
coverImage = row[5] as String?,
releaseDate = toLocalDateTime(row[6]),
isPointAvailable = row[7] as Boolean,
recencyScore = (row[8] as Number).toInt(),
randomTieBreaker = (row[9] as Number).toDouble()
price = (row[5] as Number).toInt(),
coverImage = row[6] as String?,
releaseDate = toLocalDateTime(row[7]),
isPointAvailable = row[8] as Boolean,
recencyScore = (row[9] as Number).toInt(),
randomTieBreaker = (row[10] as Number).toDouble()
)
}
}

View File

@@ -124,6 +124,7 @@ data class HomeFirstAudioContentRecord(
val creatorNickname: String,
val creatorProfileImage: String?,
val title: String,
val price: Int,
val coverImage: String?,
val releaseDate: LocalDateTime,
val isPointAvailable: Boolean,