콘텐츠 메인

- 인기 크리에이터 추가
This commit is contained in:
Yu Sung
2025-01-05 18:18:40 +09:00
parent d2d65b0405
commit 47bc905e4d
5 changed files with 219 additions and 2 deletions

View File

@@ -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)
}
}