19 lines
390 B
Swift
19 lines
390 B
Swift
import Foundation
|
|
|
|
struct MainChatRoomsResponse: Decodable {
|
|
let rooms: [MainChatRoomItem]
|
|
let hasMore: Bool
|
|
let nextCursor: String?
|
|
}
|
|
|
|
struct MainChatRoomItem: Decodable, Identifiable {
|
|
let roomId: Int
|
|
let chatType: String
|
|
let targetName: String
|
|
let targetImageUrl: String
|
|
let lastMessage: String
|
|
let lastMessageAt: String
|
|
|
|
var id: Int { roomId }
|
|
}
|