123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- //
- // CreateProcessBean.swift
- // O2Platform
- //
- // Created by 刘振兴 on 16/7/29.
- // Copyright © 2016年 zoneland. All rights reserved.
- //
- import Foundation
- import ObjectMapper
- class CreateProcessBean:Mappable {
- var title:String?
- var identity:String?
-
- init(){
-
- }
-
- required init?(map: Map) {
-
- }
-
- func mapping(map: Map) {
- title <- map["title"]
- identity <- map["identity"]
- }
- }
- //草稿对象
- class ProcessDraftBean: Mappable {
- var id: String?
- var title: String?
- var creatorPerson: String?
- var creatorIdentity: String?
- var creatorUnit: String?
- var application: String?
- var applicationName: String?
- var applicationAlias: String?
- var process: String?
- var processName: String?
- var processAlias: String?
- var workCreateType: String?
- var form: String?
- init(){
-
- }
-
- required init?(map: Map) {
-
- }
- func mapping(map: Map) {
- id <- map["id"]
- title <- map["title"]
- creatorPerson <- map["creatorPerson"]
- creatorIdentity <- map["creatorIdentity"]
- creatorUnit <- map["creatorUnit"]
- application <- map["application"]
- applicationName <- map["applicationName"]
- applicationAlias <- map["applicationAlias"]
- process <- map["process"]
- processName <- map["processName"]
- processAlias <- map["processAlias"]
- workCreateType <- map["workCreateType"]
- form <- map["form"]
- }
-
- }
- class CmsDocData:Mappable {
- var isNewDocument:Bool? = true
- var title:String?
- var creatorIdentity:String?
- var appId:String?
- var categoryId:String?
- var docStatus:String? = "draft"
- var createTime:String?
- var categoryName:String?
- var categoryAlias:String?
-
- init(){
-
- }
-
- required init?(map: Map) {
-
- }
-
- func mapping(map: Map) {
- title <- map["title"]
- isNewDocument <- map["isNewDocument"]
- creatorIdentity <- map["creatorIdentity"]
- appId <- map["appId"]
- categoryId <- map["categoryId"]
- docStatus <- map["docStatus"]
- createTime <- map["createTime"]
- categoryName <- map["categoryName"]
- categoryAlias <- map["categoryAlias"]
- }
- }
- class CreateProcessCmsData:Mappable {
- var cmsDocument:CmsDocData?
-
- init(){
-
- }
-
- required init?(map: Map) {
-
- }
-
- func mapping(map: Map) {
- cmsDocument <- map["cmsDocument"]
- }
- }
- class CreateProcessCmsBean:Mappable {
- var title:String?
- var identity:String?
- var data:CreateProcessCmsData?
-
- init(){
-
- }
-
- required init?(map: Map) {
-
- }
-
- func mapping(map: Map) {
- title <- map["title"]
- identity <- map["identity"]
- data <- map["data"]
- }
- }
|