인기 콘텐츠 전체 보기 - 정렬 추가

This commit is contained in:
Yu Sung
2023-11-03 14:45:51 +09:00
parent cf7f1527b7
commit 27df89d78e
4 changed files with 68 additions and 2 deletions

View File

@@ -93,6 +93,10 @@ final class ContentRepository {
return api.requestPublisher(.getAudioContentListByCurationId(curationId: curationId, page: page, size: size, sort: sort))
}
func getContentRankingSortType() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getContentRankingSortType)
}
func getContentRanking(page: Int, size: Int, sortType: String = "매출") -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getContentRanking(page: page, size: size, sortType: sortType))
}