// // MOPBaseApi.m // mop // // Created by 杨涛 on 2020/2/27. // #import "MOPBaseApi.h" @implementation MOPBaseApi - (void)setupWithCompletion:(void(^_Null_unspecified)(NSDictionary * _Nonnull))completion { //默认实现,子类重写!!! if (completion) { completion(@{}); } } - (void)setupApiWithSuccess:(void(^_Null_unspecified)(NSDictionary * _Nonnull))success failure:(void(^_Null_unspecified)(id _Nullable))failure cancel:(void(^_Null_unspecified)(void))cancel { //默认实现,子类重写!!! if (cancel) { cancel(); } if (success) { success(@{}); } if (failure) { failure(nil); } } @end