시리즈 상세, 채널 상세

- 19금 콘텐츠 보기 설정 적용
This commit is contained in:
2025-03-19 18:34:20 +09:00
parent b1fb62dd65
commit 9ed031e574
10 changed files with 223 additions and 35 deletions

View File

@@ -106,6 +106,8 @@ class AudioContentController(private val service: AudioContentService) {
@RequestParam("creator-id") creatorId: Long,
@RequestParam("sort-type", required = false) sortType: SortType? = SortType.NEWEST,
@RequestParam("category-id", required = false) categoryId: Long? = 0,
@RequestParam("isAdultContentVisible", required = false) isAdultContentVisible: Boolean? = null,
@RequestParam("contentType", required = false) contentType: ContentType? = null,
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
pageable: Pageable
) = run {
@@ -116,6 +118,8 @@ class AudioContentController(private val service: AudioContentService) {
creatorId = creatorId,
sortType = sortType ?: SortType.NEWEST,
categoryId = categoryId ?: 0,
isAdultContentVisible = isAdultContentVisible ?: true,
contentType = contentType ?: ContentType.ALL,
member = member,
offset = pageable.offset,
limit = pageable.pageSize.toLong()