HTTPDataProcession.h 565 B

123456789101112131415161718
  1. //
  2. // HTTPDataProcession.h
  3. // Unity-iPhone
  4. //
  5. // Created by duowan123 on 2021/2/2.
  6. //
  7. #import <Foundation/Foundation.h>
  8. typedef void(^SuccessBlock)(id data);
  9. typedef void(^FailBlock)(id errorDes);
  10. @interface HTTPDataProcession : NSObject
  11. + (void)getHTTPDataProcession:(NSString*)urlString token:(NSString*)token success:(SuccessBlock)successBlock fail:(FailBlock)failBlock;
  12. + (void)uploadHTTPDataWithUrlString:(NSString *)urlString withParams:(NSDictionary *)params token:(NSString*)token success:(SuccessBlock)successBlock fail:(FailBlock)failBlock;
  13. @end