CreateProcessBean.swift 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. //
  2. // CreateProcessBean.swift
  3. // O2Platform
  4. //
  5. // Created by 刘振兴 on 16/7/29.
  6. // Copyright © 2016年 zoneland. All rights reserved.
  7. //
  8. import Foundation
  9. import ObjectMapper
  10. class CreateProcessBean:Mappable {
  11. var title:String?
  12. var identity:String?
  13. init(){
  14. }
  15. required init?(map: Map) {
  16. }
  17. func mapping(map: Map) {
  18. title <- map["title"]
  19. identity <- map["identity"]
  20. }
  21. }
  22. //草稿对象
  23. class ProcessDraftBean: Mappable {
  24. var id: String?
  25. var title: String?
  26. var creatorPerson: String?
  27. var creatorIdentity: String?
  28. var creatorUnit: String?
  29. var application: String?
  30. var applicationName: String?
  31. var applicationAlias: String?
  32. var process: String?
  33. var processName: String?
  34. var processAlias: String?
  35. var workCreateType: String?
  36. var form: String?
  37. init(){
  38. }
  39. required init?(map: Map) {
  40. }
  41. func mapping(map: Map) {
  42. id <- map["id"]
  43. title <- map["title"]
  44. creatorPerson <- map["creatorPerson"]
  45. creatorIdentity <- map["creatorIdentity"]
  46. creatorUnit <- map["creatorUnit"]
  47. application <- map["application"]
  48. applicationName <- map["applicationName"]
  49. applicationAlias <- map["applicationAlias"]
  50. process <- map["process"]
  51. processName <- map["processName"]
  52. processAlias <- map["processAlias"]
  53. workCreateType <- map["workCreateType"]
  54. form <- map["form"]
  55. }
  56. }
  57. class CmsDocData:Mappable {
  58. var isNewDocument:Bool? = true
  59. var title:String?
  60. var creatorIdentity:String?
  61. var appId:String?
  62. var categoryId:String?
  63. var docStatus:String? = "draft"
  64. var createTime:String?
  65. var categoryName:String?
  66. var categoryAlias:String?
  67. init(){
  68. }
  69. required init?(map: Map) {
  70. }
  71. func mapping(map: Map) {
  72. title <- map["title"]
  73. isNewDocument <- map["isNewDocument"]
  74. creatorIdentity <- map["creatorIdentity"]
  75. appId <- map["appId"]
  76. categoryId <- map["categoryId"]
  77. docStatus <- map["docStatus"]
  78. createTime <- map["createTime"]
  79. categoryName <- map["categoryName"]
  80. categoryAlias <- map["categoryAlias"]
  81. }
  82. }
  83. class CreateProcessCmsData:Mappable {
  84. var cmsDocument:CmsDocData?
  85. init(){
  86. }
  87. required init?(map: Map) {
  88. }
  89. func mapping(map: Map) {
  90. cmsDocument <- map["cmsDocument"]
  91. }
  92. }
  93. class CreateProcessCmsBean:Mappable {
  94. var title:String?
  95. var identity:String?
  96. var data:CreateProcessCmsData?
  97. init(){
  98. }
  99. required init?(map: Map) {
  100. }
  101. func mapping(map: Map) {
  102. title <- map["title"]
  103. identity <- map["identity"]
  104. data <- map["data"]
  105. }
  106. }