test #418

Merged
klaus merged 8 commits from test into main 2026-04-22 01:19:41 +00:00
3 changed files with 14 additions and 0 deletions
Showing only changes of commit 249209e6bb - Show all commits

View File

@@ -0,0 +1,12 @@
# 라이브방 무료 여부 응답 추가
- [x] `GetRoomInfoResponse`에 라이브방 무료 여부 필드 추가
- [x] `GetRoomInfoResponse` 생성 경로에 무료 여부 매핑 반영
- [x] 관련 검증 수행 및 결과 기록
## 검증 기록
### 1차 구현
- 무엇을: `GetRoomInfoResponse``isFreeRoom` 필드를 추가하고, `LiveRoomService`에서 `room.price == 0` 결과를 응답에 매핑했다.
- 왜: 라이브방 정보 응답에서 클라이언트가 무료방 여부를 직접 판별할 수 있어야 하기 때문이다.
- 어떻게: Kotlin `.kt` 파일은 현재 LSP 진단을 지원하지 않아 `lsp_diagnostics` 검증은 불가함을 확인했고, `./gradlew test`를 실행해 main/test 컴파일과 테스트를 함께 검증했으며 `BUILD SUCCESSFUL`을 확인했다. 로컬 실행 환경이 이 세션에 준비되지 않아 실제 API 호출 기반 수동 QA는 수행하지 못했다.

View File

@@ -1076,6 +1076,7 @@ class LiveRoomService(
donationRankingTop3UserIds = donationRankingTop3UserIds,
menuPan = menuPan?.menu ?: "",
creatorLanguageCode = creatorLanguageCode,
isFreeRoom = room.price == 0,
isPrivateRoom = room.type == LiveRoomType.PRIVATE,
password = room.password,
isActiveRoulette = isActiveRoulette,

View File

@@ -23,6 +23,7 @@ data class GetRoomInfoResponse(
val donationRankingTop3UserIds: List<Long>,
val menuPan: String,
val creatorLanguageCode: String?,
val isFreeRoom: Boolean,
val isPrivateRoom: Boolean = false,
val password: String? = null,
val isActiveRoulette: Boolean = false,