//
//  NetWorkRequestManager.h
//  Patrol
//
//  Created by 曹云霄 on 2017/7/19.
//  Copyright © 2017年 上海勾芒科技信息有限公司. All rights reserved.
//

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


@interface NetWorkRequestManager : NSObject
@property (nonatomic,strong)  AFHTTPSessionManager *manager;

+ (instancetype)shareManager;

/**
 POST请求

 @param URLString 请求路径
 @param parmeter  参数
 @param success   成功回调
 @param failure   失败回调
 */
- (void)POST:(NSString *)URLString withParmeter:(NSDictionary *)parmeter
                                        success:(SuccessBlock)success
                                        failure:(ErrorBlock)failure;



/**
 GET请求
 
 @param URLString 请求路径
 @param parmeter  参数
 @param success   成功回调
 @param failure   失败回调
 */
- (void)GET:(NSString *)URLString withParmeter:(NSDictionary *)parmeter
                                    success:(SuccessBlock)success
                                    failure:(ErrorBlock)failure;













@end
