OOTaskModels.swift 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. //
  2. // OOTaskModels.swift
  3. // o2app
  4. //
  5. // Created by 刘振兴 on 2018/3/5.
  6. // Copyright © 2018年 zone. All rights reserved.
  7. //
  8. import Foundation
  9. import HandyJSON
  10. class O2TaskImageshowEntity:NSObject,DataModel {
  11. var application : String?
  12. var createTime : String?
  13. var creator : String?
  14. var distributeFactor : Int?
  15. var id : String?
  16. var infoId : String?
  17. var picUrl : String?
  18. var sequence : String?
  19. var title : String?
  20. var updateTime : String?
  21. var url : String?
  22. var picId:String?
  23. override required init(){}
  24. }
  25. class O2TodoTask:NSObject,DataModel {
  26. @objc var id:String?
  27. @objc var updateTime:String?
  28. @objc var job:String?
  29. @objc var title:String?
  30. @objc var startTime:String?
  31. @objc var work:String?
  32. @objc var application:String?
  33. @objc var applicationName:String?
  34. @objc var process:String?
  35. @objc var processName:String?
  36. @objc var person:String?
  37. @objc var identity:String?
  38. @objc var department:String?
  39. var completed:Bool?
  40. @objc var workCompleted:String?
  41. @objc var company:String?
  42. @objc var activity:String?
  43. @objc var activityName:String?
  44. @objc var activityType:String?
  45. @objc var activityToken:String?
  46. @objc var routeList:[String]?
  47. @objc var routeNameList:[String]?
  48. required override init() {
  49. }
  50. }
  51. class O2TodoTaskNeural:NSObject,DataModel {
  52. @objc var routeName: String?
  53. //var workLogList
  54. required override init() {
  55. }
  56. }
  57. class O2WorkPostResult:NSObject,DataModel {
  58. required override init() {
  59. }
  60. @objc var id: String?
  61. @objc var application: String?
  62. @objc var process: String?
  63. @objc var job: String?
  64. @objc var work: String?
  65. var completed: Bool?
  66. @objc var fromActivity: String?
  67. @objc var fromActivityType: String?
  68. @objc var fromActivityName: String?
  69. @objc var fromActivityAlias: String?
  70. @objc var fromActivityToken: String?
  71. @objc var recordTime: String?
  72. @objc var person: String?
  73. @objc var identity: String?
  74. @objc var unit: String?
  75. @objc var type: String?
  76. }
  77. class O2AppProcess: NSObject,DataModel {
  78. @objc var id:String?
  79. @objc var name:String?
  80. @objc var alias:String?
  81. @objc var desc:String?
  82. @objc var creatorPerson:String?
  83. @objc var application:String?
  84. @objc var icon:String?
  85. func mapping(mapper: HelpingMapper) {
  86. mapper <<<
  87. self.desc <-- "description"
  88. }
  89. required override init() {
  90. }
  91. }
  92. struct O2TaskProcess {
  93. var taskDict:[String:AnyObject]?
  94. var workDict:[String:AnyObject]?
  95. var businessDataDict:[String:AnyObject]?
  96. var taskId:String?
  97. var workId:String?
  98. var processData:String?
  99. var decisonList:[String]?
  100. var decisionRoute:String?
  101. var decisionIdea:String?
  102. init(){
  103. }
  104. }
  105. //class O2Application: NSObject,DataModel {
  106. // var id:String?
  107. // var name:String?
  108. // var alias:String?
  109. // var applicationCategory:String?
  110. // var icon:String?
  111. // var processList:[O2AppProcess]?
  112. //
  113. // required override init() {
  114. //
  115. // }
  116. //}