콘텐츠 메인
- 라이브 다시듣기 탭 UI 페이지 생성
This commit is contained in:
		@@ -56,6 +56,9 @@ enum ContentApi {
 | 
			
		||||
    
 | 
			
		||||
    case getContentMainAsmr
 | 
			
		||||
    case getPopularAsmrContentByCreator(creatorId: Int)
 | 
			
		||||
    
 | 
			
		||||
    case getContentMainReplay
 | 
			
		||||
    case getPopularReplayContentByCreator(creatorId: Int)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
extension ContentApi: TargetType {
 | 
			
		||||
@@ -190,6 +193,12 @@ extension ContentApi: TargetType {
 | 
			
		||||
            
 | 
			
		||||
        case .getPopularAsmrContentByCreator:
 | 
			
		||||
            return "/v2/audio-content/main/asmr/popular-content-by-creator"
 | 
			
		||||
            
 | 
			
		||||
        case .getContentMainReplay:
 | 
			
		||||
            return "/v2/audio-content/main/replay"
 | 
			
		||||
            
 | 
			
		||||
        case .getPopularReplayContentByCreator:
 | 
			
		||||
            return "/v2/audio-content/main/replay/popular-content-by-creator"
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
@@ -206,7 +215,7 @@ extension ContentApi: TargetType {
 | 
			
		||||
            
 | 
			
		||||
        case .getContentMainHome, .getPopularContentByCreator, .getContentMainSeries, .getRecommendSeriesListByGenre, .getRecommendSeriesByCreator, .getContentMainContent,
 | 
			
		||||
                .getContentMainNewContentOfTheme, .getDailyContentRanking, .getRecommendContentByTag, .getContentMainAlarm, .getContentMainAlarmAll,
 | 
			
		||||
                .getContentMainAsmr, .getPopularAsmrContentByCreator:
 | 
			
		||||
                .getContentMainAsmr, .getPopularAsmrContentByCreator, .getContentMainReplay, .getPopularReplayContentByCreator:
 | 
			
		||||
            return .get
 | 
			
		||||
            
 | 
			
		||||
        case .likeContent, .modifyAudioContent, .modifyComment, .unpinContent:
 | 
			
		||||
@@ -363,7 +372,7 @@ extension ContentApi: TargetType {
 | 
			
		||||
            
 | 
			
		||||
            return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
 | 
			
		||||
            
 | 
			
		||||
        case .getContentMainHome, .getContentMainSeries, .getContentMainContent, .getContentMainAlarm, .getContentMainAsmr:
 | 
			
		||||
        case .getContentMainHome, .getContentMainSeries, .getContentMainContent, .getContentMainAlarm, .getContentMainAsmr, .getContentMainReplay:
 | 
			
		||||
            return .requestPlain
 | 
			
		||||
            
 | 
			
		||||
        case .getRecommendSeriesListByGenre(let genreId):
 | 
			
		||||
@@ -403,7 +412,7 @@ extension ContentApi: TargetType {
 | 
			
		||||
            
 | 
			
		||||
            return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
 | 
			
		||||
            
 | 
			
		||||
        case .getPopularAsmrContentByCreator(let creatorId):
 | 
			
		||||
        case .getPopularAsmrContentByCreator(let creatorId), .getPopularReplayContentByCreator(let creatorId):
 | 
			
		||||
            let parameters = ["creatorId": creatorId]
 | 
			
		||||
            return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user