fix: 라이브 리스트 API

- 라이브 시작 시간 UTC 추가
This commit is contained in:
Klaus 2025-07-17 18:58:48 +09:00
parent 55da259510
commit d1c889e5f2
2 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@ data class GetRoomListResponse(
val title: String,
val content: String,
val beginDateTime: String,
val beginDateTimeUtc: String,
val numberOfParticipate: Int,
val numberOfPeople: Int,
val coverImageUrl: String,

View File

@ -176,11 +176,15 @@ class LiveRoomService(
.withLocale(Locale.KOREAN)
)
val beginDateTimeUtc = it.beginDateTime
.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)
GetRoomListResponse(
roomId = it.id!!,
title = it.title,
content = it.notice,
beginDateTime = beginDateTime,
beginDateTimeUtc = beginDateTimeUtc,
numberOfParticipate = (roomInfo?.listenerCount ?: 0) +
(roomInfo?.speakerCount ?: 0) +
(roomInfo?.managerCount ?: 0),