콘텐츠 메인 무료 탭

- 새로운 무료 콘텐츠 전체보기
This commit is contained in:
Yu Sung
2025-02-22 10:45:09 +09:00
parent 174416952e
commit bfd34329d7
9 changed files with 24 additions and 12 deletions

View File

@@ -112,9 +112,10 @@ final class ContentRepository {
return api.requestPublisher(.getNewContentThemeList)
}
func getNewContentAllOfTheme(theme: String, page: Int, size: Int) -> AnyPublisher<Response, MoyaError> {
func getNewContentAllOfTheme(isFree: Bool, theme: String, page: Int, size: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(
.getNewContentAllOfTheme(
isFree: isFree,
theme: theme,
isAdultContentVisible: UserDefaults.isAdultContentVisible(),
contentType: ContentType(rawValue: UserDefaults.string(forKey: .contentPreference)) ?? ContentType.ALL,