라이브 방 정보 - 룰렛 사용 여부 추가

This commit is contained in:
Klaus 2023-12-01 17:29:11 +09:00
parent cae9f22e49
commit 6b90f42a0e
2 changed files with 6 additions and 2 deletions

View File

@ -662,6 +662,8 @@ class LiveRoomService(
.getNotificationUserIds(room.member!!.id!!)
.contains(member.id)
val isActiveRoulette = rouletteRepository.findByIdOrNull(room.member!!.id!!)?.isActive ?: false
val donationRankingTop3UserIds = if (room.member!!.isVisibleDonationRank) {
explorerQueryRepository
.getMemberDonationRanking(
@ -712,7 +714,8 @@ class LiveRoomService(
managerList = roomInfo.managerList,
donationRankingTop3UserIds = donationRankingTop3UserIds,
isPrivateRoom = room.type == LiveRoomType.PRIVATE,
password = room.password
password = room.password,
isActiveRoulette = isActiveRoulette
)
}

View File

@ -20,5 +20,6 @@ data class GetRoomInfoResponse(
val managerList: List<LiveRoomMember>,
val donationRankingTop3UserIds: List<Long>,
val isPrivateRoom: Boolean = false,
val password: String? = null
val password: String? = null,
val isActiveRoulette: Boolean = false
)