parent
945fd5d5a3
commit
59a035e5c2
|
@ -38,6 +38,7 @@ import kr.co.vividnext.sodalive.live.room.info.LiveRoomInfo
|
|||
import kr.co.vividnext.sodalive.live.room.info.LiveRoomInfoRedisRepository
|
||||
import kr.co.vividnext.sodalive.live.room.info.LiveRoomMember
|
||||
import kr.co.vividnext.sodalive.live.room.kickout.LiveRoomKickOutService
|
||||
import kr.co.vividnext.sodalive.live.room.menu.LiveRoomMenuService
|
||||
import kr.co.vividnext.sodalive.live.room.visit.LiveRoomVisitService
|
||||
import kr.co.vividnext.sodalive.live.roulette.NewRouletteRepository
|
||||
import kr.co.vividnext.sodalive.live.tag.LiveTagRepository
|
||||
|
@ -65,6 +66,8 @@ import kotlin.concurrent.write
|
|||
@Service
|
||||
@Transactional(readOnly = true)
|
||||
class LiveRoomService(
|
||||
private val menuService: LiveRoomMenuService,
|
||||
|
||||
private val repository: LiveRoomRepository,
|
||||
private val rouletteRepository: NewRouletteRepository,
|
||||
private val roomInfoRepository: LiveRoomInfoRedisRepository,
|
||||
|
@ -703,6 +706,8 @@ class LiveRoomService(
|
|||
listOf()
|
||||
}
|
||||
|
||||
val menuPan = menuService.getLiveMenu(creatorId = room.member!!.id!!)
|
||||
|
||||
return GetRoomInfoResponse(
|
||||
roomId = roomId,
|
||||
title = room.title,
|
||||
|
@ -738,6 +743,7 @@ class LiveRoomService(
|
|||
listenerList = roomInfo.listenerList,
|
||||
managerList = roomInfo.managerList,
|
||||
donationRankingTop3UserIds = donationRankingTop3UserIds,
|
||||
menuPan = menuPan.menu,
|
||||
isPrivateRoom = room.type == LiveRoomType.PRIVATE,
|
||||
password = room.password,
|
||||
isActiveRoulette = isActiveRoulette
|
||||
|
|
|
@ -19,6 +19,7 @@ data class GetRoomInfoResponse(
|
|||
val listenerList: List<LiveRoomMember>,
|
||||
val managerList: List<LiveRoomMember>,
|
||||
val donationRankingTop3UserIds: List<Long>,
|
||||
val menuPan: String,
|
||||
val isPrivateRoom: Boolean = false,
|
||||
val password: String? = null,
|
||||
val isActiveRoulette: Boolean = false
|
||||
|
|
Loading…
Reference in New Issue