fix: 라이브 메인 API

- redis caching이 적용된 data class에 @JsonProperty 애노테이션 추가
This commit is contained in:
2025-07-21 15:48:40 +09:00
parent 046c163e6f
commit ab877beae1
4 changed files with 25 additions and 23 deletions

View File

@@ -1,5 +1,6 @@
package kr.co.vividnext.sodalive.live.room
import com.fasterxml.jackson.annotation.JsonProperty
import com.querydsl.core.annotations.QueryProjection
import kr.co.vividnext.sodalive.extensions.getTimeAgoString
import java.time.LocalDateTime
@@ -12,11 +13,11 @@ data class GetLatestFinishedLiveQueryResponse @QueryProjection constructor(
)
data class GetLatestFinishedLiveResponse(
val memberId: Long,
val nickname: String,
val profileImageUrl: String,
val timeAgo: String,
var isFollowing: Boolean = false
@JsonProperty("memberId") val memberId: Long,
@JsonProperty("nickname") val nickname: String,
@JsonProperty("profileImageUrl") val profileImageUrl: String,
@JsonProperty("timeAgo") val timeAgo: String,
@get:JsonProperty("following") var following: Boolean = false
) {
constructor(response: GetLatestFinishedLiveQueryResponse) : this(
response.memberId,