시리즈 전체보기 페이지

This commit is contained in:
Yu Sung
2024-04-29 19:36:53 +09:00
parent ffbdbbaa06
commit 101b04b6a9
9 changed files with 324 additions and 9 deletions

View File

@@ -0,0 +1,19 @@
//
// SeriesRepository.swift
// SodaLive
//
// Created by klaus on 4/29/24.
//
import Foundation
import CombineMoya
import Combine
import Moya
class SeriesRepository {
private let api = MoyaProvider<SeriesApi>()
func getSeriesList(creatorId: Int, sortType: SeriesListAllViewModel.SeriesSortType, page: Int, size: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getSeriesList(creatorId: creatorId, sortType: sortType, page: page, size: size))
}
}