AccountInfoModel.swift 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // AccountInfoModel.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by User-Tangchao on 2024/10/24.
  6. //
  7. import Cocoa
  8. class AccountInfoModel: NSObject {
  9. // 用户Id
  10. var member_id: String?
  11. var member_code: String?
  12. // 用户token
  13. var token: String?
  14. // 用户邮箱
  15. var email: String?
  16. var mobile: String?
  17. var area_code: String?
  18. // 用户账号
  19. var account: String?
  20. var notice_email: String?
  21. var sources_brand_id: String?
  22. var first_name: String?
  23. var account_url: String?
  24. var icart_url: String?
  25. var has_register_password: String?
  26. convenience init(dict: [String : Any]) {
  27. self.init()
  28. // self.setValuesForKeys(dict)
  29. self.member_id = dict["member_id"] as? String
  30. self.member_code = dict["member_code"] as? String
  31. self.token = dict["token"] as? String
  32. self.email = dict["email"] as? String
  33. self.mobile = dict["mobile"] as? String
  34. self.area_code = dict["area_code"] as? String
  35. self.account = dict["account"] as? String
  36. self.notice_email = dict["notice_email"] as? String
  37. self.sources_brand_id = dict["sources_brand_id"] as? String
  38. self.first_name = dict["first_name"] as? String
  39. self.account_url = dict["account_url"] as? String
  40. self.icart_url = dict["icart_url"] as? String
  41. self.has_register_password = dict["has_register_password"] as? String
  42. }
  43. override func setValue(_ value: Any?, forUndefinedKey key: String) {
  44. KMPrint("AccountInfoModel forUndefinedKey:" + key)
  45. }
  46. }