채널 프로필 API - community 게시물 리스트 추가

This commit is contained in:
Klaus 2023-12-20 00:03:13 +09:00
parent 13dc77666a
commit 290be744a3
2 changed files with 16 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import kr.co.vividnext.sodalive.explorer.profile.CreatorCheers
import kr.co.vividnext.sodalive.explorer.profile.CreatorCheersRepository
import kr.co.vividnext.sodalive.explorer.profile.PostWriteCheersRequest
import kr.co.vividnext.sodalive.explorer.profile.PutWriteCheersRequest
import kr.co.vividnext.sodalive.explorer.profile.creatorCommunity.CreatorCommunityService
import kr.co.vividnext.sodalive.fcm.FcmEvent
import kr.co.vividnext.sodalive.fcm.FcmEventType
import kr.co.vividnext.sodalive.live.room.detail.GetRoomDetailUser
@ -36,6 +37,8 @@ class ExplorerService(
private val queryRepository: ExplorerQueryRepository,
private val cheersRepository: CreatorCheersRepository,
private val noticeRepository: ChannelNoticeRepository,
private val communityService: CreatorCommunityService,
private val applicationEventPublisher: ApplicationEventPublisher,
@Value("\${cloud.aws.cloud-front.host}")
@ -227,6 +230,16 @@ class ExplorerService(
// 공지사항
val notice = queryRepository.getNoticeString(creatorId)
// 커뮤니티
val communityPostList = communityService.getCommunityPostList(
creatorId = creatorId,
memberId = member.id!!,
timezone = timezone,
offset = 0,
limit = 3,
isAdult = member.auth != null
)
// 응원
val cheers = queryRepository.getCheersList(creatorId, timezone = timezone, offset = 0, limit = 4)
@ -262,6 +275,7 @@ class ExplorerService(
liveRoomList = liveRoomList,
contentList = contentList,
notice = notice,
communityPostList = communityPostList,
cheers = cheers,
activitySummary = GetCreatorActivitySummary(
liveCount = liveCount,

View File

@ -1,6 +1,7 @@
package kr.co.vividnext.sodalive.explorer
import kr.co.vividnext.sodalive.content.GetAudioContentListItem
import kr.co.vividnext.sodalive.explorer.profile.creatorCommunity.GetCommunityPostListResponse
data class GetCreatorProfileResponse(
val creator: CreatorResponse,
@ -9,6 +10,7 @@ data class GetCreatorProfileResponse(
val liveRoomList: List<LiveRoomResponse>,
val contentList: List<GetAudioContentListItem>,
val notice: String,
val communityPostList: List<GetCommunityPostListResponse>,
val cheers: GetCheersResponse,
val activitySummary: GetCreatorActivitySummary,
val isBlock: Boolean