feat(main): 홈 대화 탭을 추가한다
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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 }
|
||||
}
|
||||
Reference in New Issue
Block a user