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

This commit is contained in:
Yu Sung
2026-07-06 20:19:27 +09:00
parent bae92eba4b
commit d129583d3b
15 changed files with 1322 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
import Foundation
struct AudioRankingResponse: Decodable {
let showRankChange: Bool
let type: AudioRankingType
let items: [AudioRankingItemResponse]
}
enum AudioRankingType: String, Decodable, CaseIterable, Hashable {
case weeklyPopular = "WEEKLY_POPULAR"
case rising = "RISING"
case revenue = "REVENUE"
case salesCount = "SALES_COUNT"
case commentCount = "COMMENT_COUNT"
case likeCount = "LIKE_COUNT"
}
struct AudioRankingItemResponse: Decodable, Identifiable {
let contentId: Int
let title: String
let creatorNickname: String
let rank: Int
let rankChange: Int?
let isNew: Bool
let coverImageUrl: String?
var id: Int { contentId }
}