라이브 방 리스트 - 크리에이터 프로필 이미지 URL 추가

This commit is contained in:
Klaus 2023-12-14 00:02:48 +09:00
parent da4ecf7d23
commit 7e02acd22c
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,7 @@ data class GetRoomListResponse(
val price: Int,
val tags: List<String>,
val channelName: String?,
val creatorProfileImage: String,
val creatorNickname: String,
val creatorId: Long,
val isReservation: Boolean,

View File

@ -146,6 +146,11 @@ class LiveRoomService(
isAdult = it.isAdult,
price = it.price,
channelName = it.channelName,
creatorProfileImage = if (it.member!!.profileImage != null) {
"$cloudFrontHost/${it.member!!.profileImage}"
} else {
"$cloudFrontHost/profile/default-profile.png"
},
creatorNickname = it.member!!.nickname,
creatorId = it.member!!.id!!,
tags = it.tags