시리즈 콘텐츠 리스트 정렬

- required = false 대신 defaultValue를 이용하여 기본값 설정
This commit is contained in:
Klaus 2024-09-10 17:46:17 +09:00
parent 5e01ece02b
commit d0a0b5ecbe
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class ContentSeriesController(private val service: ContentSeriesService) {
@GetMapping("/{id}/content")
fun getSeriesContentList(
@PathVariable id: Long,
@RequestParam("sortType", required = false) sortType: SeriesSortType = SeriesSortType.NEWEST,
@RequestParam("sortType", defaultValue = "NEWEST") sortType: SeriesSortType,
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
pageable: Pageable
) = run {