feat(home): 인기 커뮤니티 게시글 가격을 응답한다
This commit is contained in:
@@ -309,6 +309,7 @@ class HomeRecommendationFacade(
|
||||
imageUrl = imageUrl(cloudFrontHost, imagePath),
|
||||
audioUrl = imageUrl(cloudFrontHost, audioPath),
|
||||
content = content,
|
||||
price = price,
|
||||
createdAt = createdAt.toUtcIso(),
|
||||
likeCount = likeCount,
|
||||
commentCount = commentCount,
|
||||
|
||||
@@ -95,6 +95,7 @@ data class HomePopularCommunityPostItem(
|
||||
val imageUrl: String?,
|
||||
val audioUrl: String?,
|
||||
val content: String,
|
||||
val price: Int,
|
||||
val createdAt: String,
|
||||
val likeCount: Long,
|
||||
val commentCount: Long,
|
||||
|
||||
@@ -48,6 +48,7 @@ class HomeRecommendationResponseTest {
|
||||
imageUrl = "https://cdn.test/community/image.png",
|
||||
audioUrl = "https://cdn.test/community/audio.mp3",
|
||||
content = "community content",
|
||||
price = 9,
|
||||
createdAt = "2026-06-01T00:00:00Z",
|
||||
likeCount = 7L,
|
||||
commentCount = 8L,
|
||||
@@ -64,6 +65,7 @@ class HomeRecommendationResponseTest {
|
||||
assertEquals(5L, json["popularCommunityPosts"][0]["postId"].asLong())
|
||||
assertEquals("https://cdn.test/community/image.png", json["popularCommunityPosts"][0]["imageUrl"].asText())
|
||||
assertEquals("https://cdn.test/community/audio.mp3", json["popularCommunityPosts"][0]["audioUrl"].asText())
|
||||
assertEquals(9, json["popularCommunityPosts"][0]["price"].asInt())
|
||||
assertEquals(true, json["popularCommunityPosts"][0]["existOrdered"].asBoolean())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user