1234567891011121314151617181920 |
- //
- // ASHttpTool.h
- // ACSION
- //
- // Created by sunyue on 2019/4/22.
- // Copyright © 2019 acsion. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface ASHttpTool : NSObject
- + (void)get:(NSString *)url params:(NSDictionary *)params success:(void(^)(id json))success failure:(void(^)(NSError *error))failure;
- + (void)post:(NSString *)url params:(NSDictionary *)params success:(void(^)(id json))success failure:(void(^)(NSError *error))failure;
- + (void)uploadImageWithUrl:(NSString *)url name:(NSString *)name params:(NSDictionary *)params imageData:(NSData *)data imageName:(NSString *)imageName success:(void(^)(id json))success failure:(void(^)(NSError *error))failure;
- @end
- NS_ASSUME_NONNULL_END
|