OOFileModels.swift 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. //
  2. // OOFileModels.swift
  3. // O2Platform
  4. //
  5. // Created by 刘振兴 on 2018/4/5.
  6. // Copyright © 2018年 zoneland. All rights reserved.
  7. //
  8. import Foundation
  9. import HandyJSON
  10. // MARK:- 附件model
  11. class OOAttachment:NSObject,DataModel {
  12. @objc var contentType : String?
  13. @objc var createTime : String?
  14. @objc var editorList : [String]?
  15. @objc var `extension` : String?
  16. @objc var folder : String?
  17. @objc var id : String?
  18. @objc var lastUpdatePerson : String?
  19. @objc var lastUpdateTime : String?
  20. var length : Int?
  21. @objc var name : String?
  22. @objc var person : String?
  23. @objc var shareList : [String]?
  24. @objc var storage : String?
  25. @objc var updateTime : String?
  26. @objc var type: String?
  27. @objc var fileId: String? //分享对象的时候这个代表文件原始id
  28. override required init() {
  29. }
  30. }
  31. // MARK:- 文件夹model
  32. class OOFolder:NSObject,DataModel {
  33. @objc var createTime : String?
  34. @objc var id : String?
  35. @objc var name : String?
  36. @objc var person : String?
  37. @objc var superior : String?
  38. @objc var updateTime : String?
  39. var attachmentCount: Int?
  40. var size: Int?
  41. var folderCount: Int?
  42. @objc var status: String?
  43. @objc var fileId: String? //分享对象的时候这个代表文件原始id
  44. override required init() {
  45. }
  46. }
  47. // MARK:- 列表model
  48. class OOFolderList:NSObject,DataModel {
  49. var attachmentList:[OOAttachment]?
  50. var folderList:[OOFolder]?
  51. override required init() {
  52. }
  53. }
  54. // MARK:- 给我的共享列表Model
  55. class OOMyShareList:NSObject,DataModel {
  56. var count : Int?
  57. var name : String?
  58. var value : String?
  59. override required init() {
  60. }
  61. }
  62. //分享提交对象
  63. class OOShareForm: NSObject,DataModel {
  64. @objc var shareType : String? //分享类型 member
  65. @objc var fileId : String? //分享的文档id或者文件夹id
  66. @objc var shareUserList : [String]? //分享给的用户列表
  67. @objc var shareOrgList : [String]? //分享给的组织列表
  68. required override init() {
  69. }
  70. }