크리에이터 채널 - 시리즈 리스트 추가
This commit is contained in:
parent
84007e1b72
commit
290c4600fa
|
@ -3,6 +3,7 @@ package kr.co.vividnext.sodalive.explorer
|
||||||
import kr.co.vividnext.sodalive.common.SodaException
|
import kr.co.vividnext.sodalive.common.SodaException
|
||||||
import kr.co.vividnext.sodalive.content.AudioContentService
|
import kr.co.vividnext.sodalive.content.AudioContentService
|
||||||
import kr.co.vividnext.sodalive.content.SortType
|
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.GetFollowerListResponse
|
||||||
import kr.co.vividnext.sodalive.explorer.follower.GetFollowerListResponseItem
|
import kr.co.vividnext.sodalive.explorer.follower.GetFollowerListResponseItem
|
||||||
import kr.co.vividnext.sodalive.explorer.profile.ChannelNotice
|
import kr.co.vividnext.sodalive.explorer.profile.ChannelNotice
|
||||||
|
@ -38,6 +39,7 @@ class ExplorerService(
|
||||||
private val cheersRepository: CreatorCheersRepository,
|
private val cheersRepository: CreatorCheersRepository,
|
||||||
private val noticeRepository: ChannelNoticeRepository,
|
private val noticeRepository: ChannelNoticeRepository,
|
||||||
private val communityService: CreatorCommunityService,
|
private val communityService: CreatorCommunityService,
|
||||||
|
private val seriesService: ContentSeriesService,
|
||||||
|
|
||||||
private val applicationEventPublisher: ApplicationEventPublisher,
|
private val applicationEventPublisher: ApplicationEventPublisher,
|
||||||
|
|
||||||
|
@ -252,6 +254,10 @@ class ExplorerService(
|
||||||
val liveContributorCount = queryRepository.getLiveContributorCount(creatorId) ?: 0
|
val liveContributorCount = queryRepository.getLiveContributorCount(creatorId) ?: 0
|
||||||
val contentCount = queryRepository.getContentCount(creatorId) ?: 0
|
val contentCount = queryRepository.getContentCount(creatorId) ?: 0
|
||||||
|
|
||||||
|
val seriesList = seriesService
|
||||||
|
.getSeriesList(creatorId = creatorId, member = member)
|
||||||
|
.items
|
||||||
|
|
||||||
return GetCreatorProfileResponse(
|
return GetCreatorProfileResponse(
|
||||||
creator = CreatorResponse(
|
creator = CreatorResponse(
|
||||||
creatorId = creatorAccount.id!!,
|
creatorId = creatorAccount.id!!,
|
||||||
|
@ -283,6 +289,7 @@ class ExplorerService(
|
||||||
liveContributorCount = liveContributorCount,
|
liveContributorCount = liveContributorCount,
|
||||||
contentCount = contentCount
|
contentCount = contentCount
|
||||||
),
|
),
|
||||||
|
seriesList = seriesList,
|
||||||
isBlock = isBlock
|
isBlock = isBlock
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package kr.co.vividnext.sodalive.explorer
|
package kr.co.vividnext.sodalive.explorer
|
||||||
|
|
||||||
import kr.co.vividnext.sodalive.content.GetAudioContentListItem
|
import kr.co.vividnext.sodalive.content.GetAudioContentListItem
|
||||||
|
import kr.co.vividnext.sodalive.content.series.GetSeriesListResponse
|
||||||
import kr.co.vividnext.sodalive.explorer.profile.creatorCommunity.GetCommunityPostListResponse
|
import kr.co.vividnext.sodalive.explorer.profile.creatorCommunity.GetCommunityPostListResponse
|
||||||
|
|
||||||
data class GetCreatorProfileResponse(
|
data class GetCreatorProfileResponse(
|
||||||
|
@ -13,6 +14,7 @@ data class GetCreatorProfileResponse(
|
||||||
val communityPostList: List<GetCommunityPostListResponse>,
|
val communityPostList: List<GetCommunityPostListResponse>,
|
||||||
val cheers: GetCheersResponse,
|
val cheers: GetCheersResponse,
|
||||||
val activitySummary: GetCreatorActivitySummary,
|
val activitySummary: GetCreatorActivitySummary,
|
||||||
|
val seriesList: List<GetSeriesListResponse.SeriesListItem>,
|
||||||
val isBlock: Boolean
|
val isBlock: Boolean
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue