콘텐츠 메인 단편 탭 - 일간 랭킹

- sortType 추가
This commit is contained in:
Klaus 2025-02-19 01:33:56 +09:00
parent 839cbdeaec
commit c29627bb64
2 changed files with 4 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class AudioContentMainTabContentController(private val service: AudioContentMain
@GetMapping("/ranking")
fun getAudioContentRanking(
@RequestParam("sort-type", required = false) sortType: String? = "매출",
@RequestParam("sort-type", required = false) sortType: String?,
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
pageable: Pageable
) = run {

View File

@ -141,7 +141,7 @@ class AudioContentMainTabContentService(
fun getAudioContentRanking(
memberId: Long,
isAdult: Boolean,
sortType: String = "매출"
sortType: String
): List<GetAudioContentRankingItem> {
val currentDateTime = LocalDateTime.now()
val dailyRankingStartDate = currentDateTime
@ -156,7 +156,8 @@ class AudioContentMainTabContentService(
memberId = memberId,
isAdult = isAdult,
startDate = dailyRankingStartDate,
endDate = dailyRankingEndDate
endDate = dailyRankingEndDate,
sortType = sortType
)
}