시리즈 상세, 채널 상세

- 19금 콘텐츠 보기 설정 적용
This commit is contained in:
Yu Sung
2025-03-19 18:42:20 +09:00
parent 7dacc2d23a
commit 7c03ec8fd8
6 changed files with 69 additions and 20 deletions

View File

@@ -16,7 +16,16 @@ final class ContentRepository {
private let explorerApi = MoyaProvider<ExplorerApi>()
func getAudioContentList(userId: Int, categoryId: Int, page: Int, size: Int, sort: ContentListViewModel.Sort) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getAudioContentList(userId: userId, categoryId: categoryId, page: page, size: size, sort: sort))
return api.requestPublisher(
.getAudioContentList(
userId: userId,
categoryId: categoryId,
isAdultContentVisible: UserDefaults.isAdultContentVisible(),
contentType: ContentType(rawValue: UserDefaults.string(forKey: .contentPreference)) ?? ContentType.ALL,
page: page,
size: size,
sort: sort)
)
}
func getAudioContentDetail(audioContentId: Int) -> AnyPublisher<Response, MoyaError> {