feat(creator-channel): 홈 조회 언어를 전달한다
This commit is contained in:
+8
-4
@@ -73,8 +73,9 @@ class CreatorChannelHomeQueryService(
|
||||
val canViewAdultContent = preference.isAdult
|
||||
val isViewerCreator = viewer.role == MemberRole.CREATOR
|
||||
val effectiveViewerGender = viewer.effectiveGender()
|
||||
val locale = langContext.lang.code
|
||||
val latestAudioContent = queryPort
|
||||
.findLatestAudioContent(creatorId, now, canViewAdultContent, viewerId)
|
||||
.findLatestAudioContent(creatorId, now, canViewAdultContent, viewerId, locale)
|
||||
?.toDomain()
|
||||
val audioContents = queryPolicy.excludeLatestAudioContent(
|
||||
queryPort.findAudioContents(
|
||||
@@ -82,7 +83,8 @@ class CreatorChannelHomeQueryService(
|
||||
now = now,
|
||||
latestAudioContentId = latestAudioContent?.audioContentId,
|
||||
canViewAdultContent = canViewAdultContent,
|
||||
viewerId = viewerId
|
||||
viewerId = viewerId,
|
||||
locale = locale
|
||||
).map { it.toDomain() },
|
||||
latestAudioContent?.audioContentId
|
||||
)
|
||||
@@ -113,7 +115,8 @@ class CreatorChannelHomeQueryService(
|
||||
canViewAdultContent = canViewAdultContent,
|
||||
viewerId = viewerId,
|
||||
isViewerCreator = isViewerCreator,
|
||||
effectiveViewerGender = effectiveViewerGender
|
||||
effectiveViewerGender = effectiveViewerGender,
|
||||
locale = locale
|
||||
).map { it.toDomain() },
|
||||
now,
|
||||
canViewAdultContent
|
||||
@@ -124,7 +127,8 @@ class CreatorChannelHomeQueryService(
|
||||
viewerId = viewerId,
|
||||
now = now,
|
||||
canViewAdultContent = canViewAdultContent,
|
||||
contentType = preference.contentType
|
||||
contentType = preference.contentType,
|
||||
locale = locale
|
||||
).map { it.toDomain() },
|
||||
communities = communityQueryService.findHomeCommunityPosts(
|
||||
creatorId = creatorId,
|
||||
|
||||
+5
-1
@@ -24,7 +24,8 @@ interface CreatorChannelHomeQueryPort {
|
||||
creatorId: Long,
|
||||
now: LocalDateTime,
|
||||
canViewAdultContent: Boolean,
|
||||
viewerId: Long? = null
|
||||
viewerId: Long? = null,
|
||||
locale: String = "ko"
|
||||
): CreatorChannelAudioContentRecord?
|
||||
|
||||
fun findChannelDonations(
|
||||
@@ -41,6 +42,7 @@ interface CreatorChannelHomeQueryPort {
|
||||
viewerId: Long?,
|
||||
isViewerCreator: Boolean,
|
||||
effectiveViewerGender: Gender?,
|
||||
locale: String = "ko",
|
||||
limit: Int = 3
|
||||
): List<CreatorChannelScheduleRecord>
|
||||
|
||||
@@ -50,6 +52,7 @@ interface CreatorChannelHomeQueryPort {
|
||||
latestAudioContentId: Long?,
|
||||
canViewAdultContent: Boolean,
|
||||
viewerId: Long? = null,
|
||||
locale: String = "ko",
|
||||
limit: Int = 9
|
||||
): List<CreatorChannelAudioContentRecord>
|
||||
|
||||
@@ -59,6 +62,7 @@ interface CreatorChannelHomeQueryPort {
|
||||
now: LocalDateTime,
|
||||
canViewAdultContent: Boolean,
|
||||
contentType: ContentType,
|
||||
locale: String = "ko",
|
||||
limit: Int = 8
|
||||
): List<CreatorChannelSeriesRecord>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user