OOTaskModels.swift 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. /// 附件对象
  78. class O2WorkAttachmentInfo:NSObject,DataModel {
  79. required override init() {
  80. }
  81. @objc var id : String?
  82. @objc var name : String?
  83. @objc var `extension` : String?
  84. @objc var sequence : String?
  85. @objc var site : String?
  86. @objc var storage : String?
  87. var length : Int?
  88. @objc var application : String?
  89. @objc var process : String?
  90. @objc var job : String?
  91. @objc var person : String?
  92. @objc var lastUpdatePerson : String?
  93. @objc var lastUpdateTime : String?
  94. @objc var activity : String?
  95. @objc var activityName : String?
  96. @objc var activityToken : String?
  97. @objc var activityType : String?
  98. var completed : Bool?
  99. @objc var work: String?
  100. @objc var workCompleted: String?
  101. @objc var createTime : String?
  102. var distributeFactor : Int?
  103. @objc var updateTime : String?
  104. @objc var workCreateTime : String?
  105. }
  106. class O2AppProcess: NSObject,DataModel {
  107. @objc var id:String?
  108. @objc var name:String?
  109. @objc var alias:String?
  110. @objc var desc:String?
  111. @objc var creatorPerson:String?
  112. @objc var application:String?
  113. @objc var icon:String?
  114. func mapping(mapper: HelpingMapper) {
  115. mapper <<<
  116. self.desc <-- "description"
  117. }
  118. required override init() {
  119. }
  120. }
  121. struct O2TaskProcess {
  122. var taskDict:[String:AnyObject]?
  123. var workDict:[String:AnyObject]?
  124. var businessDataDict:[String:AnyObject]?
  125. var taskId:String?
  126. var workId:String?
  127. var processData:String?
  128. var decisonList:[String]?
  129. var decisionRoute:String?
  130. var decisionIdea:String?
  131. init(){
  132. }
  133. }
  134. //class O2Application: NSObject,DataModel {
  135. // var id:String?
  136. // var name:String?
  137. // var alias:String?
  138. // var applicationCategory:String?
  139. // var icon:String?
  140. // var processList:[O2AppProcess]?
  141. //
  142. // required override init() {
  143. //
  144. // }
  145. //}