BogoOpenWardCollectionView.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // BogoOpenWardCollectionView.h
  3. // BuguLive
  4. //
  5. // Created by 宋晨光 on 2021/10/8.
  6. // Copyright © 2021 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "BogoWardModel.h"
  10. typedef enum : NSUInteger {
  11. BOGO_OPENWARD_Collection_TYPE_GUARDIANS,
  12. BOGO_OPENWARD_Collection_TYPE_TIME,
  13. BOGO_OPENWARD_Collection_TYPE_PRIVITE,
  14. } BOGO_OPENWARD_Collection_TYPE;
  15. NS_ASSUME_NONNULL_BEGIN
  16. @interface BogoOpenWardCollectionView : UIView<UICollectionViewDelegate,UICollectionViewDataSource>
  17. @property(nonatomic, strong) UICollectionView *collectionView;
  18. @property(nonatomic, strong) NSMutableArray *dataArray;
  19. @property(nonatomic, assign) BOGO_OPENWARD_Collection_TYPE type;
  20. -(void)refreshType:(BOGO_OPENWARD_Collection_TYPE)type array:(NSArray *)dataArray;
  21. -(void)refreshTypeNameWithArray:(NSArray *)dataArray;
  22. @property(nonatomic, copy) void (^selectRowBlock)(BogoWardModel *model);
  23. @property(nonatomic, copy) void (^selectTimeCollectionViewRowBlock)(BogoWardPayTimeModel *timeModel);
  24. @end
  25. NS_ASSUME_NONNULL_END