feat(live-room): 라이브 캡쳐 녹화 가능 여부를 생성 조회에 반영한다

This commit is contained in:
2026-03-30 21:27:40 +09:00
parent a4ffab0351
commit 38fd826fe4
7 changed files with 114 additions and 3 deletions

View File

@@ -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
)

View File

@@ -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)

View File

@@ -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,

View File

@@ -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>,