OrgUnit.swift 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // OrgUnit.swift
  3. // O2Platform
  4. //
  5. // Created by 程剑 on 2017/7/10.
  6. // Copyright © 2017年 zoneland. All rights reserved.
  7. //
  8. import Foundation
  9. import ObjectMapper
  10. class OrgUnit:Mappable{
  11. var controllerList : [AnyObject]?
  12. var createTime : String?
  13. var descriptionField : String?
  14. var distinguishedName : String?
  15. var id : String?
  16. var inheritedControllerList : [AnyObject]?
  17. var level : Int?
  18. var levelName : String?
  19. var name : String?
  20. var orderNumber : Int?
  21. var pinyin : String?
  22. var pinyinInitial : String?
  23. var shortName : String?
  24. var subDirectIdentityCount : Int = 0
  25. var subDirectUnitCount : Int = 0
  26. var superior : String?
  27. var typeList : [String]?
  28. var unique : String?
  29. var updateTime : String?
  30. required init?(map: Map){}
  31. func mapping(map: Map)
  32. {
  33. controllerList <- map["controllerList"]
  34. createTime <- map["createTime"]
  35. descriptionField <- map["description"]
  36. distinguishedName <- map["distinguishedName"]
  37. id <- map["id"]
  38. inheritedControllerList <- map["inheritedControllerList"]
  39. level <- map["level"]
  40. levelName <- map["levelName"]
  41. name <- map["name"]
  42. orderNumber <- map["orderNumber"]
  43. pinyin <- map["pinyin"]
  44. pinyinInitial <- map["pinyinInitial"]
  45. shortName <- map["shortName"]
  46. subDirectIdentityCount <- map["subDirectIdentityCount"]
  47. subDirectUnitCount <- map["subDirectUnitCount"]
  48. superior <- map["superior"]
  49. typeList <- map["typeList"]
  50. unique <- map["unique"]
  51. updateTime <- map["updateTime"]
  52. }
  53. }