//
//  CTAPIBaseManager.h
//  SocialSecurity
//
//  Created by 雷俊博 on 2019/7/15.
//  Copyright © 2019 KK. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

NS_ASSUME_NONNULL_BEGIN

@interface CTAPIBaseManager : NSObject<NSCopying>

- (void)loadDataWithUrl:url params:(NSDictionary *)params success:(void (^)(id responseObject))successCallback fail:(void (^)(NSError *))failCallback;

- (void)loadData2WithUrl:url params:(NSDictionary *)params success:(void (^)(id responseObject))successCallback fail:(void (^)(NSError *))failCallback;



- (void)POSTWithUrl:(NSString *)url params:(NSDictionary *)params success:(void (^)(id responseObject))successCallback fail:(void (^)(NSError *))failCallback;


+(void)GET:(NSString *)url params:(NSDictionary *)params completionHandler:(void (^)(id responseObject, NSError *error))complete;

+(void)GET2:(NSString *)url params:(NSDictionary *)params completionHandler:(void (^)(id responseObject, NSError *error))complete;

+(void)GET3:(NSString *)url params:(NSDictionary *)params completionHandler:(void (^)(id responseObject, NSError *error))complete;

+(void)POST:(NSString *)url params:(NSDictionary *)params completionHandler:(void (^)(id responseObject, NSError *error))complete;
+ (void)POST2:(NSString *)url params:(NSDictionary *)params completionHandler:(void (^)(id responseObject, NSError *error))complete;
+ (void)POST3:(NSString *)url params:(NSDictionary *)params completionHandler:(void (^)(id responseObject, NSError *error,id responseHeader))complete;
+ (void)POST4:(NSString *)url params:(NSDictionary *)params completionHandler:(void (^)(id responseObject, NSError *error))complete;
+ (void)POST5:(NSString *)url params:(NSDictionary *)params completionHandler:(void (^)(id responseObject, NSError *error))complete;
+ (void)POST6:(NSString *)url params:(NSDictionary *)params completionHandler:(void (^)(id responseObject, NSError *error))complete;
@end

NS_ASSUME_NONNULL_END
