test #63
@@ -152,6 +152,15 @@ class AudioContentController(private val service: AudioContentService) {
 | 
				
			|||||||
        ApiResponse.ok(service.audioContentLike(request, member))
 | 
					        ApiResponse.ok(service.audioContentLike(request, member))
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @GetMapping("/ranking-sort-type")
 | 
				
			||||||
 | 
					    fun getAudioContentRankingSort(
 | 
				
			||||||
 | 
					        @AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
 | 
				
			||||||
 | 
					    ) = run {
 | 
				
			||||||
 | 
					        if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        ApiResponse.ok(service.getContentRankingSortTypeList())
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @GetMapping("/ranking")
 | 
					    @GetMapping("/ranking")
 | 
				
			||||||
    fun getAudioContentRanking(
 | 
					    fun getAudioContentRanking(
 | 
				
			||||||
        @RequestParam("sort-type", required = false) sortType: String? = "매출",
 | 
					        @RequestParam("sort-type", required = false) sortType: String? = "매출",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user