라이브 완료 응답에 dateUtc 추가

This commit is contained in:
2025-12-19 23:38:46 +09:00
parent ee495dae3a
commit 4a4dbccc0d

View File

@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
import com.querydsl.core.annotations.QueryProjection
import kr.co.vividnext.sodalive.extensions.getTimeAgoString
import java.time.LocalDateTime
import java.time.ZoneId
data class GetLatestFinishedLiveQueryResponse @QueryProjection constructor(
val memberId: Long,
@@ -16,12 +17,17 @@ data class GetLatestFinishedLiveResponse(
@JsonProperty("memberId") val memberId: Long,
@JsonProperty("nickname") val nickname: String,
@JsonProperty("profileImageUrl") val profileImageUrl: String,
@JsonProperty("timeAgo") val timeAgo: String
@JsonProperty("timeAgo") val timeAgo: String,
@JsonProperty("dateUtc") val dateUtc: String
) {
constructor(response: GetLatestFinishedLiveQueryResponse) : this(
response.memberId,
response.nickname,
response.profileImageUrl,
response.updatedAt.getTimeAgoString()
response.updatedAt.getTimeAgoString(),
response.updatedAt
.atZone(ZoneId.of("UTC"))
.toInstant()
.toString()
)
}