feat(series-all-home): 시리즈 전체보기 홈 탭 API 적용

This commit is contained in:
Yu Sung
2025-11-15 02:13:12 +09:00
parent 280ce4beda
commit 72329d6f60
5 changed files with 135 additions and 1 deletions

View File

@@ -6,3 +6,19 @@
//
import Foundation
import CombineMoya
import Combine
import Moya
class SeriesMainRepository {
private let api = MoyaProvider<SeriesMainApi>()
func fetchHome() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(
.fetchHome(
isAdultContentVisible: UserDefaults.isAdultContentVisible(),
contentType: ContentType(rawValue: UserDefaults.string(forKey: .contentPreference)) ?? ContentType.ALL
)
)
}
}