Department.swift 831 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // Department.swift
  3. // O2Platform
  4. //
  5. // Created by 刘振兴 on 16/7/8.
  6. // Copyright © 2016年 zoneland. All rights reserved.
  7. //
  8. import Foundation
  9. import ObjectMapper
  10. class Department:Mappable {
  11. var name:String?
  12. var display:String?
  13. var company:String?
  14. var superior:String?
  15. var departmentCount:Int?
  16. var identityCount:Int?
  17. var departmentList:[String]?
  18. var identityList:[String]?
  19. required init?(map: Map) {
  20. }
  21. func mapping(map: Map) {
  22. name <- map["name"]
  23. display <- map["display"]
  24. company <- map["company"]
  25. superior <- map["superior"]
  26. departmentCount <- map["departmentCount"]
  27. identityCount <- map["identityCount"]
  28. departmentList <- map["departmentList"]
  29. identityList <- map["identityList"]
  30. }
  31. }