feat(content): 랭킹 유형 탭을 추가한다

This commit is contained in:
Yu Sung
2026-07-07 00:38:48 +09:00
parent 9c4c304fc6
commit b33aed94c6
6 changed files with 138 additions and 13 deletions

View File

@@ -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 {