Person.swift 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // Person.swift
  3. // O2Platform
  4. //
  5. // Created by 刘振兴 on 16/7/7.
  6. // Copyright © 2016年 zoneland. All rights reserved.
  7. //
  8. import Foundation
  9. import ObjectMapper
  10. class Person:Mappable {
  11. var name:String?
  12. var id:String?
  13. var pinyin:String?
  14. var pinyinInitial:String?
  15. var employee:String?
  16. var unique:String?
  17. var genderType:String?
  18. var controllerList:[String]?
  19. var display:String?
  20. var mail:String?
  21. var weixin:String?
  22. var qq:String?
  23. var weibo:String?
  24. var mobile:String?
  25. var icon:String?
  26. init () {
  27. }
  28. required init?(map: Map) {
  29. }
  30. func mapping(map: Map) {
  31. name <- map["name"]
  32. id <- map["id"]
  33. pinyin <- map["pinyin"]
  34. pinyinInitial <- map["pinyinInitial"]
  35. unique <- map["unique"]
  36. genderType <- map["genderType"]
  37. display <- map["display"]
  38. mail <- map["mail"]
  39. weixin <- map["weixin"]
  40. qq <- map["qq"]
  41. weibo <- map["weibo"]
  42. mobile <- map["mobile"]
  43. icon <- map["icon"]
  44. controllerList <- map["controllerList"]
  45. }
  46. }