1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // netWorkManager.h
- // 隐私保护
- //
- // Created by xd h on 2023/10/8.
- //
- #import <Foundation/Foundation.h>
- #import "connectDeviceManager.h"
- 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;
- - (void)doUploadFileToFileServiceWithParams:(NSMutableDictionary *)params data:(NSData *)data success:(netWork_Success)success faild:(netWork_Faild)faildStr;
- #pragma mark afnetwork post 请求
- - (void)cloudPhonePostCallBackCode:(NSString*)code Parameters:(NSDictionary*)dict success:(netWork_Success)success failure:(netWork_Faild)failure;
- #pragma mark afnetwork get 请求
- - (void)cloudPhoneGETCallBackCode:(NSString*)code Parameters:(NSDictionary*)dict success:(netWork_Success)success failure:(netWork_Faild)failure;
- @end
- NS_ASSUME_NONNULL_END
|