//
//  UIView+Request.h
//  MoistureOil
//
//  Created by nana on 2020/4/2.
//  Copyright © 2020 idankee. All rights reserved.
//



#import <UIKit/UIKit.h>
#import "JFResponseModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Request)
/// 设置授权服务器
+(void)setDefaultHost:(NSString *)host;
/// 设置授权默认值
+(void)setAuthorizationDefaultRequestValue:(NSString *)value key:(NSString *)key;
-(void)postFormDataWithUrl:(NSString *)url params:(NSDictionary *)params success:(void (^)(NSDictionary *responseObject,JFResponseModel *JsonData))success;
-(void)postJsonWithUrl:(NSString *)url params:(NSDictionary *)params success:(void (^)(NSDictionary *responseObject,JFResponseModel *JsonData))success;

-(void)postFormDataWithUrl:(NSString *)url params:(NSDictionary *)params showHUD:(BOOL)showHUD success:(void (^)(NSDictionary *responseObject,JFResponseModel *JsonData))success;
-(void)postJsonWithUrl:(NSString *)url params:(NSDictionary *)params showHUD:(BOOL)showHUD success:(void (^)(NSDictionary *responseObject,JFResponseModel *JsonData))success;
@end

NS_ASSUME_NONNULL_END
