BRResultModel.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // BRResultModel.h
  3. // BRPickerViewDemo
  4. //
  5. // Created by renbo on 2019/10/2.
  6. // Copyright © 2019 irenb. All rights reserved.
  7. //
  8. // 最新代码下载地址:https://github.com/91renb/BRPickerView
  9. #import <Foundation/Foundation.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface BRResultModel : NSObject
  12. /** key */
  13. @property (nullable, nonatomic, copy) NSString *key;
  14. /** value */
  15. @property (nullable, nonatomic, copy) NSString *value;
  16. /** 父级key(提示:联动时第一级数据,parentKey设置为:@"-1") */
  17. @property (nullable, nonatomic, copy) NSString *parentKey;
  18. /** 父级value */
  19. @property (nullable, nonatomic, copy) NSString *parentValue;
  20. /** 级别 */
  21. @property (nullable, nonatomic, copy) NSString *level;
  22. /** 子级list */
  23. @property (nullable, nonatomic, copy) NSArray<BRResultModel *> *children;
  24. /** 记录选择的索引位置 */
  25. @property (nonatomic, assign) NSInteger index;
  26. /// 其它扩展字段
  27. @property (nullable, nonatomic, strong) id extras;
  28. @property (nullable, nonatomic, copy) NSString *remark;
  29. @end
  30. NS_ASSUME_NONNULL_END