Company.swift 766 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // Company.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 Company:Mappable {
  11. var name:String?
  12. var display:String?
  13. var superior:String?
  14. var companyCount:Int?
  15. var departmentCount:Int?
  16. var companyList:[String]?
  17. var departmentList:[String]?
  18. required init?(map: Map) {
  19. }
  20. func mapping(map: Map) {
  21. name <- map["name"]
  22. display <- map["display"]
  23. superior <- map["superior"]
  24. companyCount <- map["compnayCount"]
  25. departmentCount <- map["departmentCount"]
  26. companyList <- map["companyList"]
  27. departmentList <- map["departmentList"]
  28. }
  29. }