feat(home): 보온 주간 차트 콘텐츠 정렬 기준 추가
- 매출, 판매량, 댓글 수, 좋아요 수
This commit is contained in:
@@ -13,6 +13,7 @@ enum HomeApi {
|
||||
case getLatestContentByTheme(theme: String, isAdultContentVisible: Bool, contentType: ContentType)
|
||||
case getDayOfWeekSeriesList(dayOfWeek: SeriesPublishedDaysOfWeek, isAdultContentVisible: Bool, contentType: ContentType)
|
||||
case getRecommendContents(isAdultContentVisible: Bool, contentType: ContentType)
|
||||
case getContentRankingBySort(sort: ContentRankingSortType, isAdultContentVisible: Bool, contentType: ContentType)
|
||||
}
|
||||
|
||||
extension HomeApi: TargetType {
|
||||
@@ -33,6 +34,9 @@ extension HomeApi: TargetType {
|
||||
|
||||
case .getRecommendContents:
|
||||
return "/api/home/recommend-contents"
|
||||
|
||||
case .getContentRankingBySort:
|
||||
return "/api/home/content-ranking"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,6 +79,15 @@ extension HomeApi: TargetType {
|
||||
"contentType": contentType
|
||||
] as [String: Any]
|
||||
|
||||
return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
|
||||
|
||||
case .getContentRankingBySort(let sort, let isAdultContentVisible, let contentType):
|
||||
let parameters = [
|
||||
"sort": sort,
|
||||
"isAdultContentVisible": isAdultContentVisible,
|
||||
"contentType": contentType
|
||||
] as [String: Any]
|
||||
|
||||
return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user