콘텐츠 조회

- 조회 조건에 카테고리 추가
This commit is contained in:
2024-02-02 20:03:23 +09:00
parent c50f24b755
commit 22f274fd32
3 changed files with 13 additions and 0 deletions

View File

@@ -105,6 +105,7 @@ class AudioContentController(private val service: AudioContentService) {
fun getAudioContentList(
@RequestParam("creator-id") creatorId: Long,
@RequestParam("sort-type", required = false) sortType: SortType = SortType.NEWEST,
@RequestParam("category-id", required = false) categoryId: Long = 0,
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
pageable: Pageable
) = run {
@@ -114,6 +115,7 @@ class AudioContentController(private val service: AudioContentService) {
service.getAudioContentList(
creatorId = creatorId,
sortType = sortType,
categoryId = categoryId,
member = member,
offset = pageable.offset,
limit = pageable.pageSize.toLong()