feat(home): 랭킹 API 기반 상태를 추가한다
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import Foundation
|
||||
|
||||
struct MainHomeCreatorRankingResponse: Decodable {
|
||||
let showRankChange: Bool
|
||||
let items: [MainHomeCreatorRankingItem]
|
||||
}
|
||||
|
||||
struct MainHomeCreatorRankingItem: Decodable, Identifiable {
|
||||
let rank: Int
|
||||
let rankChange: Int?
|
||||
let isNew: Bool
|
||||
let creatorId: Int
|
||||
let nickname: String
|
||||
let profileImageUrl: String?
|
||||
|
||||
var id: Int { creatorId }
|
||||
}
|
||||
Reference in New Issue
Block a user