diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt index 6186c1b..2a1515d 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt @@ -3,6 +3,7 @@ package kr.co.vividnext.sodalive.explorer import kr.co.vividnext.sodalive.common.SodaException import kr.co.vividnext.sodalive.content.AudioContentService import kr.co.vividnext.sodalive.content.SortType +import kr.co.vividnext.sodalive.content.series.ContentSeriesService import kr.co.vividnext.sodalive.explorer.follower.GetFollowerListResponse import kr.co.vividnext.sodalive.explorer.follower.GetFollowerListResponseItem import kr.co.vividnext.sodalive.explorer.profile.ChannelNotice @@ -38,6 +39,7 @@ class ExplorerService( private val cheersRepository: CreatorCheersRepository, private val noticeRepository: ChannelNoticeRepository, private val communityService: CreatorCommunityService, + private val seriesService: ContentSeriesService, private val applicationEventPublisher: ApplicationEventPublisher, @@ -252,6 +254,10 @@ class ExplorerService( val liveContributorCount = queryRepository.getLiveContributorCount(creatorId) ?: 0 val contentCount = queryRepository.getContentCount(creatorId) ?: 0 + val seriesList = seriesService + .getSeriesList(creatorId = creatorId, member = member) + .items + return GetCreatorProfileResponse( creator = CreatorResponse( creatorId = creatorAccount.id!!, @@ -283,6 +289,7 @@ class ExplorerService( liveContributorCount = liveContributorCount, contentCount = contentCount ), + seriesList = seriesList, isBlock = isBlock ) } diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/GetCreatorProfileResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/GetCreatorProfileResponse.kt index da86441..bfdd016 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/GetCreatorProfileResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/GetCreatorProfileResponse.kt @@ -1,6 +1,7 @@ package kr.co.vividnext.sodalive.explorer import kr.co.vividnext.sodalive.content.GetAudioContentListItem +import kr.co.vividnext.sodalive.content.series.GetSeriesListResponse import kr.co.vividnext.sodalive.explorer.profile.creatorCommunity.GetCommunityPostListResponse data class GetCreatorProfileResponse( @@ -13,6 +14,7 @@ data class GetCreatorProfileResponse( val communityPostList: List, val cheers: GetCheersResponse, val activitySummary: GetCreatorActivitySummary, + val seriesList: List, val isBlock: Boolean )