天天省钱快报

KBCacheHttp.h 532B

12345678910111213141516171819
  1. //
  2. // LDCacheHttp.h
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/10.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface KBCacheHttp : NSObject
  10. + (void)post:(NSString *)url params:(NSDictionary *)params success:(void(^)(id json,BOOL isCache))success failure:(void(^)(NSError *error))failure;
  11. /**
  12. *普通get请求
  13. */
  14. + (void)get:(NSString *)url params:(NSDictionary *)params success:(void(^)(id json,BOOL isCache))success failure:(void(^)(NSError *error))failure;
  15. @end