2020-02-27 17:21:45 +08:00
|
|
|
//
|
|
|
|
// MOPBaseApi.h
|
|
|
|
// mop
|
|
|
|
//
|
|
|
|
// Created by 杨涛 on 2020/2/27.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2021-01-08 15:03:14 +08:00
|
|
|
#import <FinApplet/FinApplet.h>
|
2020-02-27 17:21:45 +08:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface MOPBaseApi : NSObject
|
|
|
|
|
|
|
|
/**
|
|
|
|
api名称
|
|
|
|
*/
|
|
|
|
@property (nonatomic, readonly, copy) NSString * _Null_unspecified command;
|
|
|
|
|
|
|
|
/**
|
|
|
|
原始参数
|
|
|
|
*/
|
|
|
|
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable param;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
设置API, 子类重写
|
|
|
|
|
|
|
|
@param success 成功回调
|
|
|
|
@param failure 失败回调
|
|
|
|
@param cancel 取消回调
|
|
|
|
*/
|
|
|
|
- (void)setupApiWithSuccess:(void(^_Null_unspecified)(NSDictionary<NSString *, id> * _Nonnull))success
|
|
|
|
failure:(void(^_Null_unspecified)(id _Nullable))failure
|
|
|
|
cancel:(void(^_Null_unspecified)(void))cancel;
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|