From 12cdd25be7342427b2cfc382bb2b34cff9b7606f Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 16 Oct 2025 15:05:23 +0900 Subject: [PATCH] =?UTF-8?q?feat(creator-profile-live):=20LiveRoomResponse?= =?UTF-8?q?=EC=97=90=20utc=20=EA=B8=B0=EB=B0=98=EC=9D=98=20=EB=9D=BC?= =?UTF-8?q?=EC=9D=B4=EB=B8=8C=20=EC=8B=9C=EC=9E=91=20=EC=8B=9C=EA=B0=84=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sodalive/explorer/ExplorerQueryRepository.kt | 15 +++++++++++---- .../sodalive/explorer/ExplorerService.kt | 3 +-- .../sodalive/explorer/LiveRoomResponse.kt | 6 +----- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerQueryRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerQueryRepository.kt index e321409..4c1bacd 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerQueryRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerQueryRepository.kt @@ -40,6 +40,7 @@ import java.time.LocalDate import java.time.LocalDateTime import java.time.ZoneId import java.time.format.DateTimeFormatter +import java.util.Locale @Repository class ExplorerQueryRepository( @@ -354,7 +355,6 @@ class ExplorerQueryRepository( creatorId: Long, userMember: Member, timezone: String, - limit: Int, offset: Long = 0 ): List { var where = liveRoom.member.id.eq(creatorId) @@ -393,6 +393,14 @@ class ExplorerQueryRepository( val beginDateTime = it.beginDateTime .atZone(ZoneId.of("UTC")) .withZoneSameInstant(ZoneId.of(timezone)) + .format( + DateTimeFormatter + .ofPattern("yyyy년 MM월 dd일 (E) a hh시 mm분") + .withLocale(Locale.KOREAN) + ) + + val beginDateTimeUtc = it.beginDateTime + .format(DateTimeFormatter.ISO_LOCAL_DATE_TIME) val isPaid = if (it.channelName != null) { val useCan = queryFactory @@ -416,9 +424,8 @@ class ExplorerQueryRepository( title = it.title, content = it.notice, isPaid = isPaid, - beginDateTime = beginDateTime.format( - DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a") - ), + beginDateTime = beginDateTime, + beginDateTimeUtc = beginDateTimeUtc, isAdult = it.isAdult, price = it.price, channelName = it.channelName, diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt index aff691a..7536269 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt @@ -209,8 +209,7 @@ class ExplorerService( queryRepository.getLiveRoomList( creatorId, userMember = member, - timezone = timezone, - limit = 3 + timezone = timezone ) } else { listOf() diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/LiveRoomResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/LiveRoomResponse.kt index d21bd6b..fb04ba5 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/LiveRoomResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/LiveRoomResponse.kt @@ -1,16 +1,12 @@ package kr.co.vividnext.sodalive.explorer -data class GetLiveRoomAllResponse( - val totalCount: Int, - val liveRoomList: List -) - data class LiveRoomResponse( val roomId: Long, val title: String, val content: String, val isPaid: Boolean, val beginDateTime: String, + val beginDateTimeUtc: String, val coverImageUrl: String, val isAdult: Boolean, val price: Int,