12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- //
- // 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;
- - (void)setAFHTTPSessionManagerFunBy:(NSInteger)tcpPort;
- #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 埋点请求
- //eventType 事件模块类型 0 一级模块=1 二级模块=2 三级模块=3
- //事件模块值 Scan_code
- - (void)DataEmbeddingPointBy:(int)eventType withEventValue:(NSString*)eventValue;
- #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;
- #pragma mark afnetwork get 请求 检测文件是否存在
- - (void)cloudPhoneCheckUrlCallBackCode:(NSString*)code success:(netWork_Success)success failure:(netWork_Faild)failure;
- #pragma mark afnetwork get 请求 音乐播放器下载音频缓存
- - (void)cloudPhoneDownloadAudioByCode:(NSString*)code withSavePath:(NSString*)savePath success:(netWork_Success)success failure:(netWork_Faild)failure;
- #pragma mark 根据SN 获取设备信息
- - (void)getThridMsgBySN:(NSString*)snStr success:(netWork_Success)success failure:(netWork_Faild)failure;
- -(void)RefreshThridMsg;
- #pragma mark 修改隐私模式密码
- -(void)updateCardInfoBySN:(NSString*)snStr withPwdStr:(NSString*)pwd didNetEnd:(netWork_DidEndByOK)didNetEndIsOK;
- @end
- NS_ASSUME_NONNULL_END
|