// // netWorkManager.h // 隐私保护 // // Created by xd h on 2023/10/8. // #import NS_ASSUME_NONNULL_BEGIN /** * 成功请求Block返回的字典 */ typedef void (^netWork_Success) (id responseObject); /** * 失败Block返回 */ typedef void (^netWork_Faild) (NSError *error); @interface netWorkManager : NSObject +(netWorkManager *)shareInstance; #pragma mark afnetwork post 请求 - (void)CommonPostCallBackCode:(NSString*)code Parameters:(NSDictionary*)dict success:(netWork_Success)success failure:(netWork_Faild)failure; #pragma mark afnetwork get 请求 - (void)CommonGetWithCallBackCode:(NSString *)code Parameters:(NSDictionary *_Nullable)dic success:(netWork_Success)success failure:(netWork_Faild)faildStr; @end NS_ASSUME_NONNULL_END