콘텐츠 랭킹 데이터 전체보기 API - 페이징 추가

This commit is contained in:
2023-10-15 03:38:26 +09:00
parent 9146e2e231
commit 149a3ad2f1
3 changed files with 18 additions and 4 deletions

View File

@@ -577,7 +577,11 @@ class AudioContentService(
}
}
fun getAudioContentRanking(member: Member): GetAudioContentRanking {
fun getAudioContentRanking(
member: Member,
offset: Long,
limit: Long
): GetAudioContentRanking {
val currentDateTime = LocalDateTime.now()
val startDate = currentDateTime
.withHour(15)
@@ -597,7 +601,8 @@ class AudioContentService(
startDate = startDate,
endDate = endDate,
isAdult = member.auth != null,
limit = 50
offset = offset,
limit = limit
)
return GetAudioContentRanking(