test #327
| @@ -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.content.theme.AudioContentThemeService | ||||||
| import kr.co.vividnext.sodalive.creator.admin.content.series.SeriesPublishedDaysOfWeek | import kr.co.vividnext.sodalive.creator.admin.content.series.SeriesPublishedDaysOfWeek | ||||||
| import kr.co.vividnext.sodalive.event.EventService | 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.LiveRoomService | ||||||
| import kr.co.vividnext.sodalive.live.room.LiveRoomStatus | import kr.co.vividnext.sodalive.live.room.LiveRoomStatus | ||||||
| import kr.co.vividnext.sodalive.member.Member | import kr.co.vividnext.sodalive.member.Member | ||||||
| @@ -39,6 +40,7 @@ class HomeService( | |||||||
|  |  | ||||||
|     private val rankingService: RankingService, |     private val rankingService: RankingService, | ||||||
|     private val rankingRepository: RankingRepository, |     private val rankingRepository: RankingRepository, | ||||||
|  |     private val explorerQueryRepository: ExplorerQueryRepository, | ||||||
|  |  | ||||||
|     @Value("\${cloud.aws.cloud-front.host}") |     @Value("\${cloud.aws.cloud-front.host}") | ||||||
|     private val imageHost: String |     private val imageHost: String | ||||||
| @@ -70,7 +72,10 @@ class HomeService( | |||||||
|                     true |                     true | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             .map { it.toExplorerSectionCreator(imageHost) } |             .map { | ||||||
|  |                 val followerCount = explorerQueryRepository.getNotificationUserIds(it.id!!).size | ||||||
|  |                 it.toExplorerSectionCreator(imageHost, followerCount) | ||||||
|  |             } | ||||||
|  |  | ||||||
|         val latestContentThemeList = contentThemeService.getActiveThemeOfContent( |         val latestContentThemeList = contentThemeService.getActiveThemeOfContent( | ||||||
|             isAdult = isAdult, |             isAdult = isAdult, | ||||||
|   | |||||||
| @@ -14,5 +14,6 @@ data class GetExplorerSectionCreatorResponse( | |||||||
|     val id: Long, |     val id: Long, | ||||||
|     val nickname: String, |     val nickname: String, | ||||||
|     val tags: 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( |         return GetExplorerSectionCreatorResponse( | ||||||
|             id = id!!, |             id = id!!, | ||||||
|             nickname = nickname, |             nickname = nickname, | ||||||
| @@ -135,7 +135,8 @@ data class Member( | |||||||
|                 "$imageHost/$profileImage" |                 "$imageHost/$profileImage" | ||||||
|             } else { |             } else { | ||||||
|                 "$imageHost/profile/default-profile.png" |                 "$imageHost/profile/default-profile.png" | ||||||
|             } |             }, | ||||||
|  |             followerCount = followerCount | ||||||
|         ) |         ) | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user