콘텐츠 메인 - 추천시리즈, 모닝콜, 숏플, 라이브 다시보기

- 남성향이면 여성 크리에이터, 여성향이면 남성 크리에이터 작품만 조회되도록 수정
This commit is contained in:
Yu Sung
2024-10-14 01:34:58 +09:00
parent d53b45ac19
commit 5532b1bdcc
4 changed files with 31 additions and 7 deletions

View File

@@ -148,6 +148,15 @@ final class ContentRepository {
}
func getAudioContentByTheme(themeId: Int, page: Int, size: Int, sort: ContentAllByThemeViewModel.Sort) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getAudioContentByTheme(themeId: themeId, page: page, size: size, sort: sort))
return api.requestPublisher(
.getAudioContentByTheme(
themeId: themeId,
isAdultContentVisible: UserDefaults.isAdultContentVisible(),
contentType: ContentType(rawValue: UserDefaults.string(forKey: .contentPreference)) ?? ContentType.ALL,
page: page,
size: size,
sort: sort
)
)
}
}