//
|
// MRHttpResquest.h
|
// MaoerProject
|
//
|
// Created by eliolu on 2018/8/15.
|
// Copyright © 2018年 eliolu. All rights reserved.
|
//
|
|
#import <Foundation/Foundation.h>
|
#import "CSAFNetworking.h"
|
|
@interface MRHttpResquest : NSObject
|
|
/**
|
* @brief HttpRequest
|
* @param url url
|
* @param postDict 参数字典
|
* @param apiName 接口名称
|
* @param response block
|
*/
|
+(void)RequestWithURL:(NSString *)url
|
POSTbody:(NSMutableDictionary *)postDict
|
APIName:(NSString *)apiName
|
response:(void(^)(NSError * error,NSDictionary * resultDict))response;
|
|
+(void)PostWithURL:(NSString *)url
|
POSTbody:(NSMutableDictionary *)postDict
|
APIName:(NSString *)apiName
|
response:(void(^)(NSError * error,NSDictionary * resultDict))response;
|
|
+(NSString *)getSDKVersion;
|
+(NSString*)getIdfa;
|
+(NSString*) buildParams:(NSDictionary*)paramsMap :(BOOL)addSign;
|
@end
|