콘텐츠 메인
- 인기 크리에이터 추가
This commit is contained in:
@@ -13,6 +13,7 @@ import Moya
|
||||
final class ContentRepository {
|
||||
private let api = MoyaProvider<ContentApi>()
|
||||
private let categoryApi = MoyaProvider<CategoryApi>()
|
||||
private let explorerApi = MoyaProvider<ExplorerApi>()
|
||||
|
||||
func getAudioContentList(userId: Int, categoryId: Int, page: Int, size: Int, sort: ContentListViewModel.Sort) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getAudioContentList(userId: userId, categoryId: categoryId, page: page, size: size, sort: sort))
|
||||
@@ -168,4 +169,8 @@ final class ContentRepository {
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
func getCreatorRanking() -> AnyPublisher<Response, MoyaError> {
|
||||
return explorerApi.requestPublisher(.getCreatorRank)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user