콘텐츠 메인

- 모닝콜 탭 API
This commit is contained in:
2025-02-07 23:45:44 +09:00
parent c5539bc7e3
commit d1579126f3
9 changed files with 144 additions and 13 deletions

View File

@@ -48,7 +48,8 @@ class RankingRepository(
endDate: LocalDateTime,
offset: Long,
limit: Long,
sortType: String
sortType: String,
theme: String = ""
): List<GetAudioContentRankingItem> {
val blockMemberCondition = blockMember.member.id.eq(member.id)
.and(blockMember.isActive.isTrue)
@@ -67,6 +68,10 @@ class RankingRepository(
where = where.and(audioContent.isAdult.isFalse)
}
if (theme.isNotBlank()) {
where = where.and(audioContentTheme.theme.eq(theme))
}
var select = queryFactory
.select(
QGetAudioContentRankingItem(

View File

@@ -44,7 +44,8 @@ class RankingService(
endDate: LocalDateTime,
offset: Long = 0,
limit: Long = 12,
sortType: String = "매출"
sortType: String = "매출",
theme: String = ""
): List<GetAudioContentRankingItem> {
return repository.getAudioContentRanking(
memberId = memberId,
@@ -53,7 +54,8 @@ class RankingService(
endDate = endDate,
offset = offset,
limit = limit,
sortType = sortType
sortType = sortType,
theme = theme
)
}