콘텐츠 메인
- 시리즈 탭 UI 페이지 생성
This commit is contained in:
@@ -6,3 +6,22 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CombineMoya
|
||||
import Combine
|
||||
import Moya
|
||||
|
||||
final class ContentMainTabSeriesRepository {
|
||||
private let api = MoyaProvider<ContentApi>()
|
||||
|
||||
func getContentMainSeries() -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getContentMainSeries)
|
||||
}
|
||||
|
||||
func getRecommendSeriesListByGenre(genreId: Int) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getRecommendSeriesListByGenre(genreId: genreId))
|
||||
}
|
||||
|
||||
func getRecommendSeriesByCreator(creatorId: Int) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getRecommendSeriesByCreator(creatorId: creatorId))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user