fix: 라이브 메인 API
- redis caching이 적용된 data class에 @JsonProperty 애노테이션 추가
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user