콘텐츠 메인 단편 탭 - 일간 랭킹
- sortType 추가
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user