fix: 메인 홈 - 인기 크리에이터
- 팔로워 수 추가
This commit is contained in:
		| @@ -10,6 +10,7 @@ import kr.co.vividnext.sodalive.content.series.GetSeriesListResponse | ||||
| import kr.co.vividnext.sodalive.content.theme.AudioContentThemeService | ||||
| import kr.co.vividnext.sodalive.creator.admin.content.series.SeriesPublishedDaysOfWeek | ||||
| import kr.co.vividnext.sodalive.event.EventService | ||||
| import kr.co.vividnext.sodalive.explorer.ExplorerQueryRepository | ||||
| import kr.co.vividnext.sodalive.live.room.LiveRoomService | ||||
| import kr.co.vividnext.sodalive.live.room.LiveRoomStatus | ||||
| import kr.co.vividnext.sodalive.member.Member | ||||
| @@ -39,6 +40,7 @@ class HomeService( | ||||
|  | ||||
|     private val rankingService: RankingService, | ||||
|     private val rankingRepository: RankingRepository, | ||||
|     private val explorerQueryRepository: ExplorerQueryRepository, | ||||
|  | ||||
|     @Value("\${cloud.aws.cloud-front.host}") | ||||
|     private val imageHost: String | ||||
| @@ -70,7 +72,10 @@ class HomeService( | ||||
|                     true | ||||
|                 } | ||||
|             } | ||||
|             .map { it.toExplorerSectionCreator(imageHost) } | ||||
|             .map { | ||||
|                 val followerCount = explorerQueryRepository.getNotificationUserIds(it.id!!).size | ||||
|                 it.toExplorerSectionCreator(imageHost, followerCount) | ||||
|             } | ||||
|  | ||||
|         val latestContentThemeList = contentThemeService.getActiveThemeOfContent( | ||||
|             isAdult = isAdult, | ||||
|   | ||||
| @@ -14,5 +14,6 @@ data class GetExplorerSectionCreatorResponse( | ||||
|     val id: Long, | ||||
|     val nickname: String, | ||||
|     val tags: String, | ||||
|     val profileImageUrl: String | ||||
|     val profileImageUrl: String, | ||||
|     val followerCount: Int | ||||
| ) | ||||
|   | ||||
| @@ -123,7 +123,7 @@ data class Member( | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     fun toExplorerSectionCreator(imageHost: String): GetExplorerSectionCreatorResponse { | ||||
|     fun toExplorerSectionCreator(imageHost: String, followerCount: Int = 0): GetExplorerSectionCreatorResponse { | ||||
|         return GetExplorerSectionCreatorResponse( | ||||
|             id = id!!, | ||||
|             nickname = nickname, | ||||
| @@ -135,7 +135,8 @@ data class Member( | ||||
|                 "$imageHost/$profileImage" | ||||
|             } else { | ||||
|                 "$imageHost/profile/default-profile.png" | ||||
|             } | ||||
|             }, | ||||
|             followerCount = followerCount | ||||
|         ) | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user