1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // NYComplaintListViewModel.h
- // jiaPei
- //
- // Created by Ning.ge on 2023/7/4.
- // Copyright © 2023 JCZ. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import "NYComplaintListViewController.h"
- #import "ComplaintDataModel.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface NYComplaintListViewModel : NSObject
- @property (nonatomic,assign) int currentPage;
- @property (nonatomic,strong) ComplaintDataModel *complaintDataModel;
- @property (nonatomic,strong) NSMutableArray *complaintList;
- /// The data source of table view. 这里不能用NSMutableArray,因为NSMutableArray不支持KVO,不能被RACObserve
- @property (nonatomic, readwrite, copy) NSArray *dataSource;
- @property (nonatomic,weak) NYComplaintListViewController *vc;
- //新增投诉
- @property (nonatomic, strong) RACCommand *addCommand;
- //撤销投诉
- @property (nonatomic, strong) RACCommand *cancelCommand;
- //图片浏览
- @property (nonatomic, strong) RACCommand *imagesCommand;
- - (void)getComplaintList;
- - (void)getComplaintListMore;
- @end
- NS_ASSUME_NONNULL_END
|