From 08ebb311fb3d096b917683ae9e5b49cea104036f Mon Sep 17 00:00:00 2001 From: Klaus Date: Mon, 20 Oct 2025 14:47:13 +0900 Subject: [PATCH] =?UTF-8?q?feat(home):=20=EC=9D=B8=EA=B8=B0=20=EC=BA=90?= =?UTF-8?q?=EB=A6=AD=ED=84=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/co/vividnext/sodalive/api/home/GetHomeResponse.kt | 2 ++ .../kr/co/vividnext/sodalive/api/home/HomeService.kt | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/api/home/GetHomeResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/api/home/GetHomeResponse.kt index 6db81ca..aa11948 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/api/home/GetHomeResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/api/home/GetHomeResponse.kt @@ -1,6 +1,7 @@ package kr.co.vividnext.sodalive.api.home import kr.co.vividnext.sodalive.audition.GetAuditionListItem +import kr.co.vividnext.sodalive.chat.character.dto.Character import kr.co.vividnext.sodalive.content.AudioContentMainItem import kr.co.vividnext.sodalive.content.main.GetAudioContentRankingItem import kr.co.vividnext.sodalive.content.main.banner.GetAudioContentBannerResponse @@ -21,6 +22,7 @@ data class GetHomeResponse( val originalAudioDramaList: List, val auditionList: List, val dayOfWeekSeriesList: List, + val popularCharacters: List, val contentRanking: List, val recommendChannelList: List, val freeContentList: List, diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/api/home/HomeService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/api/home/HomeService.kt index 4f9e75e..5d66fe5 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/api/home/HomeService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/api/home/HomeService.kt @@ -1,6 +1,7 @@ package kr.co.vividnext.sodalive.api.home import kr.co.vividnext.sodalive.audition.AuditionService +import kr.co.vividnext.sodalive.chat.character.service.ChatCharacterService import kr.co.vividnext.sodalive.content.AudioContentMainItem import kr.co.vividnext.sodalive.content.AudioContentService import kr.co.vividnext.sodalive.content.ContentType @@ -39,6 +40,7 @@ class HomeService( private val contentThemeService: AudioContentThemeService, private val recommendChannelService: RecommendChannelQueryService, + private val characterService: ChatCharacterService, private val rankingService: RankingService, private val rankingRepository: RankingRepository, private val explorerQueryRepository: ExplorerQueryRepository, @@ -127,6 +129,9 @@ class HomeService( dayOfWeek = getDayOfWeekByTimezone(timezone) ) + // 인기 캐릭터 조회 + val popularCharacters = characterService.getPopularCharacters() + val currentDateTime = LocalDateTime.now() val startDate = currentDateTime .withHour(15) @@ -146,8 +151,6 @@ class HomeService( sortType = "매출" ) - // TODO 오디오 북 - val recommendChannelList = recommendChannelService.getRecommendChannel( memberId = memberId, isAdult = isAdult, @@ -188,6 +191,7 @@ class HomeService( originalAudioDramaList = originalAudioDramaList, auditionList = auditionList, dayOfWeekSeriesList = dayOfWeekSeriesList, + popularCharacters = popularCharacters, contentRanking = contentRanking, recommendChannelList = recommendChannelList, freeContentList = freeContentList, -- 2.49.1