feat(content): 랭킹 유형 탭을 추가한다
This commit is contained in:
@@ -13,6 +13,23 @@ enum AudioRankingType: String, Decodable, CaseIterable, Hashable {
|
||||
case salesCount = "SALES_COUNT"
|
||||
case commentCount = "COMMENT_COUNT"
|
||||
case likeCount = "LIKE_COUNT"
|
||||
|
||||
var title: String {
|
||||
switch self {
|
||||
case .weeklyPopular:
|
||||
return I18n.MainContentRanking.weeklyPopularTabTitle
|
||||
case .rising:
|
||||
return I18n.MainContentRanking.risingTabTitle
|
||||
case .revenue:
|
||||
return I18n.MainContentRanking.revenueTabTitle
|
||||
case .salesCount:
|
||||
return I18n.MainContentRanking.salesCountTabTitle
|
||||
case .commentCount:
|
||||
return I18n.MainContentRanking.commentCountTabTitle
|
||||
case .likeCount:
|
||||
return I18n.MainContentRanking.likeCountTabTitle
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct AudioRankingItemResponse: Decodable, Identifiable {
|
||||
|
||||
Reference in New Issue
Block a user