From 7e02acd22cb64f94ec77316d473a03dab82df103 Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 14 Dec 2023 00:02:48 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EB=B0=A9=20?= =?UTF-8?q?=EB=A6=AC=EC=8A=A4=ED=8A=B8=20-=20=ED=81=AC=EB=A6=AC=EC=97=90?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=20=ED=94=84=EB=A1=9C=ED=95=84=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=A7=80=20URL=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../co/vividnext/sodalive/live/room/GetRoomListResponse.kt | 1 + .../kr/co/vividnext/sodalive/live/room/LiveRoomService.kt | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/GetRoomListResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/GetRoomListResponse.kt index 34edc54..2649133 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/GetRoomListResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/GetRoomListResponse.kt @@ -12,6 +12,7 @@ data class GetRoomListResponse( val price: Int, val tags: List, val channelName: String?, + val creatorProfileImage: String, val creatorNickname: String, val creatorId: Long, val isReservation: Boolean, diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt index 09101b0..25ab32f 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt @@ -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