| 123456789101112131415161718192021222324252627282930313233343536 |
- //
- // MODynamicBaseUrlAPI.h
- // MiMoLive
- //
- // Created by SuperC on 2023/10/19.
- //
- #import <AFNetworking/AFNetworking.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface MODynamicBaseUrlAPI : AFHTTPSessionManager
- /// 初始base url
- /// @param baseUrl base url
- + (MODynamicBaseUrlAPI *)clientWithBaseUrl:(NSString *)baseUrl;
- /// 上传数据
- /// @param aPath 路径
- /// @param data 数据
- /// @param type 类型
- /// @param params 参数
- /// @param networkMethodInt 请求类型
- /// @param progressHandler 进度
- /// @param block 回调
- - (NSURLSessionDataTask *)requestJsonDataWithPath:(NSString *)aPath
- withData:(NSData *)data
- withType:(NSString *)type
- withParams:(NSDictionary*)params
- withMethodType:(int)networkMethodInt
- withProgressHandler:(void (^)(NSProgress *))progressHandler
- andBlock:(void (^)(id data, NSError *error))block;
- @end
- NS_ASSUME_NONNULL_END
|