// // EmergencyContactModel.swift // QuickLocation // // Created by 八条 on 2026/6/11. // import ObjectMapper import RxDataSources /// 紧急联系人列表 struct EmergencyContactListResponse: BaseModelProtocol { // 状态码 var code: String? // 消息 var message: String? // var list: [EmergencyContactModel] = [] init?(map: Map) {} mutating func mapping(map: Map) { code <- map["code"] message <- map["msg"] list <- map["data"] } } struct EmergencyContactModel: Mappable, Equatable { var uuid: String = UUID().uuidString /// var name: String = "" var phone: String = "" var ischecked: Bool = false init?(map: Map) { } mutating func mapping(map: Map) { name <- map["name"] phone <- map["phone"] ischecked <- map["ischecked"] } } extension EmergencyContactModel: IdentifiableType { public typealias Identity = String public var identity: String { return uuid } }