feat(live-room): 라이브 캡쳐 녹화 가능 여부를 생성 조회에 반영한다
This commit is contained in:
@@ -16,5 +16,6 @@ data class CreateLiveRoomRequest(
|
||||
val menuPan: String = "",
|
||||
val isActiveMenuPan: Boolean = false,
|
||||
val isAvailableJoinCreator: Boolean = true,
|
||||
val genderRestriction: GenderRestriction = GenderRestriction.ALL
|
||||
val genderRestriction: GenderRestriction = GenderRestriction.ALL,
|
||||
val isCaptureRecordingAvailable: Boolean = false
|
||||
)
|
||||
|
||||
@@ -34,7 +34,8 @@ data class LiveRoom(
|
||||
@Column(nullable = true)
|
||||
var password: String? = null,
|
||||
@Enumerated(value = EnumType.STRING)
|
||||
var genderRestriction: GenderRestriction = GenderRestriction.ALL
|
||||
var genderRestriction: GenderRestriction = GenderRestriction.ALL,
|
||||
val isCaptureRecordingAvailable: Boolean = false
|
||||
) : BaseEntity() {
|
||||
@OneToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "member_id", nullable = false)
|
||||
|
||||
@@ -427,7 +427,8 @@ class LiveRoomService(
|
||||
type = request.type,
|
||||
password = request.password,
|
||||
isAvailableJoinCreator = request.isAvailableJoinCreator,
|
||||
genderRestriction = request.genderRestriction
|
||||
genderRestriction = request.genderRestriction,
|
||||
isCaptureRecordingAvailable = request.isCaptureRecordingAvailable
|
||||
)
|
||||
room.member = member
|
||||
|
||||
@@ -1066,6 +1067,7 @@ class LiveRoomService(
|
||||
},
|
||||
isFollowing = isFollowing,
|
||||
isAdult = room.isAdult,
|
||||
isCaptureRecordingAvailable = room.isCaptureRecordingAvailable,
|
||||
participantsCount = roomInfo.listenerCount + roomInfo.speakerCount + roomInfo.managerCount,
|
||||
totalAvailableParticipantsCount = room.numberOfPeople,
|
||||
speakerList = roomInfo.speakerList,
|
||||
|
||||
@@ -14,6 +14,7 @@ data class GetRoomInfoResponse(
|
||||
val creatorProfileUrl: String,
|
||||
val isFollowing: Boolean,
|
||||
val isAdult: Boolean,
|
||||
val isCaptureRecordingAvailable: Boolean,
|
||||
val participantsCount: Int,
|
||||
val totalAvailableParticipantsCount: Int,
|
||||
val speakerList: List<LiveRoomMember>,
|
||||
|
||||
Reference in New Issue
Block a user