NYComplaintListViewModel.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // NYComplaintListViewModel.h
  3. // jiaPei
  4. //
  5. // Created by Ning.ge on 2023/7/4.
  6. // Copyright © 2023 JCZ. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "NYComplaintListViewController.h"
  10. #import "ComplaintDataModel.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface NYComplaintListViewModel : NSObject
  13. @property (nonatomic,assign) int currentPage;
  14. @property (nonatomic,strong) ComplaintDataModel *complaintDataModel;
  15. @property (nonatomic,strong) NSMutableArray *complaintList;
  16. /// The data source of table view. 这里不能用NSMutableArray,因为NSMutableArray不支持KVO,不能被RACObserve
  17. @property (nonatomic, readwrite, copy) NSArray *dataSource;
  18. @property (nonatomic,weak) NYComplaintListViewController *vc;
  19. //新增投诉
  20. @property (nonatomic, strong) RACCommand *addCommand;
  21. //撤销投诉
  22. @property (nonatomic, strong) RACCommand *cancelCommand;
  23. //图片浏览
  24. @property (nonatomic, strong) RACCommand *imagesCommand;
  25. - (void)getComplaintList;
  26. - (void)getComplaintListMore;
  27. @end
  28. NS_ASSUME_NONNULL_END