feat(home-recommendation): 첫 오디오 조회 언어를 전달한다

This commit is contained in:
2026-09-09 23:21:15 +09:00
parent dba70483ad
commit 14394b8263
3 changed files with 34 additions and 19 deletions
@@ -1,6 +1,7 @@
package kr.co.vividnext.sodalive.v2.recommendation.application
import kr.co.vividnext.sodalive.i18n.Lang
import kr.co.vividnext.sodalive.i18n.LangContext
import kr.co.vividnext.sodalive.v2.common.domain.CreatorActivityType
import kr.co.vividnext.sodalive.v2.recommendation.domain.RecommendationSnapshotWindowPolicy
import kr.co.vividnext.sodalive.v2.recommendation.domain.RecommendedSectionType
@@ -29,7 +30,8 @@ class HomeRecommendationQueryService(
private val aiCharacterSnapshotFallbackService: AiCharacterSnapshotFallbackPort? = null,
private val cheerCreatorSnapshotFallbackService: CheerCreatorSnapshotFallbackPort? = null,
private val popularCommunitySnapshotFallbackService: PopularCommunitySnapshotFallbackPort? = null,
private val clock: Clock = Clock.systemUTC()
private val clock: Clock = Clock.systemUTC(),
private val langContext: LangContext
) {
private val snapshotWindowPolicy = RecommendationSnapshotWindowPolicy()
@@ -76,7 +78,7 @@ class HomeRecommendationQueryService(
memberId: Long? = null,
includeAdultContents: Boolean = false
): List<HomeFirstAudioContentRecord> {
return queryPort.findFirstAudioContents(now, offset, limit, memberId, includeAdultContents)
return queryPort.findFirstAudioContents(now, offset, limit, memberId, includeAdultContents, langContext.lang.code)
}
fun findAiCharacterRecommendations(
@@ -38,7 +38,8 @@ interface HomeRecommendationQueryPort {
offset: Long = 0,
limit: Int,
memberId: Long? = null,
includeAdultContents: Boolean = false
includeAdultContents: Boolean = false,
locale: String
): List<HomeFirstAudioContentRecord>
fun findAiCharacterSnapshots(