O2Application.swift 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. //
  2. // O2Data.swift
  3. // Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport
  4. import Foundation
  5. import ObjectMapper
  6. import HandyJSON
  7. class O2Application : NSObject, DataModel {
  8. @objc var alias : String?
  9. @objc var applicationCategory : String?
  10. @objc var controllerList : [String]?
  11. @objc var createTime : String?
  12. @objc var creatorPerson : String?
  13. @objc var descriptionField : String?
  14. @objc var icon : String?
  15. @objc var id : String?
  16. @objc var lastUpdatePerson : String?
  17. @objc var lastUpdateTime : String?
  18. @objc var name : String?
  19. @objc var updateTime : String?
  20. var processList:[O2ApplicationProcess]?
  21. required override init(){}
  22. func mapping(map: Map)
  23. {
  24. alias <- map["alias"]
  25. applicationCategory <- map["applicationCategory"]
  26. controllerList <- map["controllerList"]
  27. createTime <- map["createTime"]
  28. creatorPerson <- map["creatorPerson"]
  29. descriptionField <- map["description"]
  30. icon <- map["icon"]
  31. id <- map["id"]
  32. lastUpdatePerson <- map["lastUpdatePerson"]
  33. lastUpdateTime <- map["lastUpdateTime"]
  34. name <- map["name"]
  35. updateTime <- map["updateTime"]
  36. processList <- map["processList"]
  37. }
  38. }
  39. class O2ApplicationProcess: NSObject, DataModel {
  40. @objc var id:String?
  41. @objc var name:String?
  42. @objc var alias:String?
  43. @objc var desc:String?
  44. @objc var creatorPerson:String?
  45. @objc var application:String?
  46. @objc var icon:String?
  47. @objc var defaultStartMode: String?
  48. @objc var startableTerminal: String? // client,mobile,all 有可能没有值 没有值就是all
  49. required override init(){}
  50. }
  51. class O2ApplicationIcon: NSObject, DataModel {
  52. @objc var icon: String?
  53. @objc var iconHue: String?
  54. required override init() {
  55. }
  56. func mapping(mapper: HelpingMapper) {
  57. }
  58. }
  59. /// 根据应用查询流程 applicationItemWithFilter filter对象
  60. class O2ProcessFilter: NSObject, DataModel {
  61. @objc var startableTerminal: String? //可启动流程终端类型,可选值 client,mobile,all
  62. required override init() {
  63. }
  64. func mapping(mapper: HelpingMapper) {
  65. }
  66. }