MindFolder.swift 908 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // MindFolder.swift
  3. // O2Platform
  4. //
  5. // Created by FancyLou on 2021/12/15.
  6. // Copyright © 2021 zoneland. All rights reserved.
  7. //
  8. import HandyJSON
  9. // 脑图目录
  10. class MindFolder : NSObject, DataModel {
  11. @objc var id: String?
  12. @objc var name: String?
  13. @objc var parentId: String? // 默认根目录id root
  14. var orderNumber: Int?
  15. var children: [MindFolder]? = []
  16. @objc var desc: String?
  17. @objc var creator: String?
  18. @objc var creatorUnit: String?
  19. @objc var createTime: String?
  20. @objc var updateTime: String?
  21. @objc var sequence: String?
  22. var level: Int? // 服务器没有level字段 查询结果转成list给tableview使用的时候填充 从1 开始
  23. var selected: Bool = false // 是否选中
  24. required override init(){}
  25. func mapping(mapper: HelpingMapper) {
  26. mapper <<< self.desc <-- "description"
  27. }
  28. }