재생목록 플레이어 추가
This commit is contained in:
		@@ -37,6 +37,7 @@ enum ContentApi {
 | 
			
		||||
    case pinContent(contentId: Int)
 | 
			
		||||
    case unpinContent(contentId: Int)
 | 
			
		||||
    case getAudioContentByTheme(themeId: Int, isAdultContentVisible: Bool, contentType: ContentType, page: Int, size: Int, sort: ContentAllByThemeViewModel.Sort)
 | 
			
		||||
    case generateUrl(contentId: Int)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
extension ContentApi: TargetType {
 | 
			
		||||
@@ -129,6 +130,9 @@ extension ContentApi: TargetType {
 | 
			
		||||
            
 | 
			
		||||
        case .getAudioContentByTheme(let themeId, _, _, _, _, _):
 | 
			
		||||
            return "/audio-content/theme/\(themeId)/content"
 | 
			
		||||
            
 | 
			
		||||
        case .generateUrl(let contentId):
 | 
			
		||||
            return "/audio-content/\(contentId)/generate-url"
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
@@ -137,7 +141,7 @@ extension ContentApi: TargetType {
 | 
			
		||||
        case .getAudioContentList, .getAudioContentDetail, .getOrderList, .getAudioContentThemeList,
 | 
			
		||||
                .getAudioContentCommentList, .getAudioContentCommentReplyList, .getNewContentOfTheme,
 | 
			
		||||
                .getNewContentThemeList, .getNewContentAllOfTheme, .getAudioContentListByCurationId, .getContentRanking,
 | 
			
		||||
                .getContentRankingSortType:
 | 
			
		||||
                .getContentRankingSortType, .generateUrl:
 | 
			
		||||
            return .get
 | 
			
		||||
            
 | 
			
		||||
        case .getMainBannerList, .getMainOrderList, .getNewContentUploadCreatorList, .getCurationList, .getAudioContentByTheme:
 | 
			
		||||
@@ -195,7 +199,7 @@ extension ContentApi: TargetType {
 | 
			
		||||
        case .addAllPlaybackTracking(let request):
 | 
			
		||||
            return .requestJSONEncodable(request)
 | 
			
		||||
            
 | 
			
		||||
        case .getAudioContentThemeList, .getMainBannerList, .getMainOrderList, .getNewContentUploadCreatorList:
 | 
			
		||||
        case .getAudioContentThemeList, .getMainBannerList, .getMainOrderList, .getNewContentUploadCreatorList, .generateUrl:
 | 
			
		||||
            return .requestPlain
 | 
			
		||||
            
 | 
			
		||||
        case .uploadAudioContent(let parameters):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user