콘텐츠 메인 - Api 분리

This commit is contained in:
Yu Sung
2023-12-11 20:01:26 +09:00
parent 77a145d61c
commit c09920942c
25 changed files with 886 additions and 590 deletions

View File

@@ -65,14 +65,26 @@ final class ContentRepository {
return api.requestPublisher(.modifyAudioContent(parameters: parameters))
}
func getMain() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getMain)
func getNewContentUploadCreatorList() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getNewContentUploadCreatorList)
}
func getMainBannerList() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getMainBannerList)
}
func getMainOrderList() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getMainOrderList)
}
func getNewContentOfTheme(theme: String) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getNewContentOfTheme(theme: theme))
}
func getCurationList(page: Int, size: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getCurationList(page: page, size: size))
}
func donation(contentId: Int, can: Int, comment: String) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.donation(request: AudioContentDonationRequest(contentId: contentId, donationCan: can, comment: comment)))
}