콘텐츠 메인
- ASMR 탭 UI 페이지 생성
This commit is contained in:
@@ -53,6 +53,9 @@ enum ContentApi {
|
||||
|
||||
case getContentMainAlarm
|
||||
case getContentMainAlarmAll(theme: String, page: Int, size: Int)
|
||||
|
||||
case getContentMainAsmr
|
||||
case getPopularAsmrContentByCreator(creatorId: Int)
|
||||
}
|
||||
|
||||
extension ContentApi: TargetType {
|
||||
@@ -181,6 +184,12 @@ extension ContentApi: TargetType {
|
||||
|
||||
case .getContentMainAlarmAll:
|
||||
return "/v2/audio-content/main/alarm/all"
|
||||
|
||||
case .getContentMainAsmr:
|
||||
return "/v2/audio-content/main/asmr"
|
||||
|
||||
case .getPopularAsmrContentByCreator:
|
||||
return "/v2/audio-content/main/asmr/popular-content-by-creator"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -196,7 +205,8 @@ extension ContentApi: TargetType {
|
||||
return .get
|
||||
|
||||
case .getContentMainHome, .getPopularContentByCreator, .getContentMainSeries, .getRecommendSeriesListByGenre, .getRecommendSeriesByCreator, .getContentMainContent,
|
||||
.getContentMainNewContentOfTheme, .getDailyContentRanking, .getRecommendContentByTag, .getContentMainAlarm, .getContentMainAlarmAll:
|
||||
.getContentMainNewContentOfTheme, .getDailyContentRanking, .getRecommendContentByTag, .getContentMainAlarm, .getContentMainAlarmAll,
|
||||
.getContentMainAsmr, .getPopularAsmrContentByCreator:
|
||||
return .get
|
||||
|
||||
case .likeContent, .modifyAudioContent, .modifyComment, .unpinContent:
|
||||
@@ -353,7 +363,7 @@ extension ContentApi: TargetType {
|
||||
|
||||
return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
|
||||
|
||||
case .getContentMainHome, .getContentMainSeries, .getContentMainContent, .getContentMainAlarm:
|
||||
case .getContentMainHome, .getContentMainSeries, .getContentMainContent, .getContentMainAlarm, .getContentMainAsmr:
|
||||
return .requestPlain
|
||||
|
||||
case .getRecommendSeriesListByGenre(let genreId):
|
||||
@@ -392,6 +402,10 @@ extension ContentApi: TargetType {
|
||||
] as [String : Any]
|
||||
|
||||
return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
|
||||
|
||||
case .getPopularAsmrContentByCreator(let creatorId):
|
||||
let parameters = ["creatorId": creatorId]
|
||||
return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user