BRResultModel.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. /** 索引 */
  13. @property (nonatomic, assign) NSInteger index;
  14. /** key */
  15. @property (nullable, nonatomic, copy) NSString *key;
  16. /** value */
  17. @property (nullable, nonatomic, copy) NSString *value;
  18. /** 父级key(提示:联动时第一级数据,parentKey设置为:@"-1") */
  19. @property (nullable, nonatomic, copy) NSString *parentKey;
  20. /** 父级value */
  21. @property (nullable, nonatomic, copy) NSString *parentValue;
  22. /// 其它扩展字段
  23. @property (nullable, nonatomic, copy) NSString *remark;
  24. @property (nonatomic, assign) BOOL boolField;
  25. @property (nullable, nonatomic, strong) id idField;
  26. @property (nullable, nonatomic, strong) NSNumber *numberField;
  27. @property (nullable, nonatomic, copy) NSString *ID __attribute__((deprecated("Use 'key' instead")));
  28. @property (nullable, nonatomic, copy) NSString *name __attribute__((deprecated("Use 'value' instead")));
  29. @end
  30. NS_ASSUME_NONNULL_END