test #350
@@ -40,6 +40,7 @@ import java.time.LocalDate
|
|||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
import java.time.ZoneId
|
import java.time.ZoneId
|
||||||
import java.time.format.DateTimeFormatter
|
import java.time.format.DateTimeFormatter
|
||||||
|
import java.util.Locale
|
||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
class ExplorerQueryRepository(
|
class ExplorerQueryRepository(
|
||||||
@@ -354,7 +355,6 @@ class ExplorerQueryRepository(
|
|||||||
creatorId: Long,
|
creatorId: Long,
|
||||||
userMember: Member,
|
userMember: Member,
|
||||||
timezone: String,
|
timezone: String,
|
||||||
limit: Int,
|
|
||||||
offset: Long = 0
|
offset: Long = 0
|
||||||
): List<LiveRoomResponse> {
|
): List<LiveRoomResponse> {
|
||||||
var where = liveRoom.member.id.eq(creatorId)
|
var where = liveRoom.member.id.eq(creatorId)
|
||||||
@@ -393,6 +393,14 @@ class ExplorerQueryRepository(
|
|||||||
val beginDateTime = it.beginDateTime
|
val beginDateTime = it.beginDateTime
|
||||||
.atZone(ZoneId.of("UTC"))
|
.atZone(ZoneId.of("UTC"))
|
||||||
.withZoneSameInstant(ZoneId.of(timezone))
|
.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 isPaid = if (it.channelName != null) {
|
||||||
val useCan = queryFactory
|
val useCan = queryFactory
|
||||||
@@ -416,9 +424,8 @@ class ExplorerQueryRepository(
|
|||||||
title = it.title,
|
title = it.title,
|
||||||
content = it.notice,
|
content = it.notice,
|
||||||
isPaid = isPaid,
|
isPaid = isPaid,
|
||||||
beginDateTime = beginDateTime.format(
|
beginDateTime = beginDateTime,
|
||||||
DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a")
|
beginDateTimeUtc = beginDateTimeUtc,
|
||||||
),
|
|
||||||
isAdult = it.isAdult,
|
isAdult = it.isAdult,
|
||||||
price = it.price,
|
price = it.price,
|
||||||
channelName = it.channelName,
|
channelName = it.channelName,
|
||||||
|
@@ -209,8 +209,7 @@ class ExplorerService(
|
|||||||
queryRepository.getLiveRoomList(
|
queryRepository.getLiveRoomList(
|
||||||
creatorId,
|
creatorId,
|
||||||
userMember = member,
|
userMember = member,
|
||||||
timezone = timezone,
|
timezone = timezone
|
||||||
limit = 3
|
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
listOf()
|
listOf()
|
||||||
|
@@ -1,16 +1,12 @@
|
|||||||
package kr.co.vividnext.sodalive.explorer
|
package kr.co.vividnext.sodalive.explorer
|
||||||
|
|
||||||
data class GetLiveRoomAllResponse(
|
|
||||||
val totalCount: Int,
|
|
||||||
val liveRoomList: List<LiveRoomResponse>
|
|
||||||
)
|
|
||||||
|
|
||||||
data class LiveRoomResponse(
|
data class LiveRoomResponse(
|
||||||
val roomId: Long,
|
val roomId: Long,
|
||||||
val title: String,
|
val title: String,
|
||||||
val content: String,
|
val content: String,
|
||||||
val isPaid: Boolean,
|
val isPaid: Boolean,
|
||||||
val beginDateTime: String,
|
val beginDateTime: String,
|
||||||
|
val beginDateTimeUtc: String,
|
||||||
val coverImageUrl: String,
|
val coverImageUrl: String,
|
||||||
val isAdult: Boolean,
|
val isAdult: Boolean,
|
||||||
val price: Int,
|
val price: Int,
|
||||||
|
Reference in New Issue
Block a user