콘텐츠 전체보기
- 카테고리 추가
This commit is contained in:
		@@ -12,9 +12,10 @@ import Moya
 | 
			
		||||
 | 
			
		||||
final class ContentRepository {
 | 
			
		||||
    private let api = MoyaProvider<ContentApi>()
 | 
			
		||||
    private let categoryApi = MoyaProvider<CategoryApi>()
 | 
			
		||||
    
 | 
			
		||||
    func getAudioContentList(userId: Int, page: Int, size: Int, sort: ContentListViewModel.Sort) -> AnyPublisher<Response, MoyaError> {
 | 
			
		||||
        return api.requestPublisher(.getAudioContentList(userId: userId, page: page, size: size, sort: sort))
 | 
			
		||||
    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))
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    func getAudioContentDetail(audioContentId: Int) -> AnyPublisher<Response, MoyaError> {
 | 
			
		||||
@@ -120,4 +121,8 @@ final class ContentRepository {
 | 
			
		||||
    func unpinContent(contentId: Int) -> AnyPublisher<Response, MoyaError> {
 | 
			
		||||
        return api.requestPublisher(.unpinContent(contentId: contentId))
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    func getCategoryList(creatorId: Int) -> AnyPublisher<Response, MoyaError> {
 | 
			
		||||
        return categoryApi.requestPublisher(.getCategoryList(creatorId: creatorId))
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user