콘텐츠 메인 - Api 분리
This commit is contained in:
		@@ -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)))
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user