
- Removed YuMi/Library/ (138 MB, not tracked) - Removed YuMi/Resources/ (23 MB, not tracked) - Removed old version assets (566 files, not tracked) - Excluded Pods/, xcuserdata/ and other build artifacts - Clean repository optimized for company server deployment
38 lines
1.4 KiB
Objective-C
38 lines
1.4 KiB
Objective-C
//
|
|
// BaseMvpPresenter.h
|
|
// YUMI
|
|
//
|
|
// Created by admin on 2023/3/9.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "BaseMvpProtocol.h"
|
|
#import "HttpRequestHelper.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef void(^HttpSuccess)(BaseModel *data);
|
|
typedef void(^HttpFail)(NSInteger code, NSString * _Nullable msg);
|
|
|
|
@interface BaseMvpPresenter : NSObject
|
|
|
|
- (void)attatchView:(id)view;
|
|
- (id)getView;
|
|
- (void)detatchView;
|
|
- (void)logout;
|
|
- (void)tokenInvalid;
|
|
- (HttpRequestHelperCompletion)createHttpCompletion:(HttpSuccess _Nonnull)success;
|
|
- (HttpRequestHelperCompletion)createHttpCompletion:(HttpSuccess _Nonnull)success showLoading:(BOOL)loading;
|
|
- (HttpRequestHelperCompletion)createHttpCompletion:(HttpSuccess _Nonnull)success errorToast:(BOOL)toast;
|
|
- (HttpRequestHelperCompletion)createHttpCompletion:(HttpSuccess _Nonnull)success showLoading:(BOOL)loading errorToast:(BOOL)toast;
|
|
- (HttpRequestHelperCompletion)createHttpCompletion:(HttpSuccess _Nonnull)success fail:(HttpFail _Nullable)fail;
|
|
- (HttpRequestHelperCompletion)createHttpCompletion:(HttpSuccess _Nonnull)success fail:(HttpFail _Nullable)fail showLoading:(BOOL)loading;
|
|
- (HttpRequestHelperCompletion)createHttpCompletion:(HttpSuccess _Nonnull)success fail:(HttpFail _Nullable)fail errorToast:(BOOL)toast;
|
|
- (HttpRequestHelperCompletion)createHttpCompletion:(HttpSuccess _Nonnull)success fail:(HttpFail _Nullable)fail showLoading:(BOOL)loading errorToast:(BOOL)toast;
|
|
|
|
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|