크리에이터 채널 - 시리즈 리스트 추가

This commit is contained in:
Klaus 2024-04-25 00:20:09 +09:00
parent 84007e1b72
commit 290c4600fa
2 changed files with 9 additions and 0 deletions

View File

@ -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
)
}

View File

@ -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<GetCommunityPostListResponse>,
val cheers: GetCheersResponse,
val activitySummary: GetCreatorActivitySummary,
val seriesList: List<GetSeriesListResponse.SeriesListItem>,
val isBlock: Boolean
)