洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.5 KiB

8 months ago
  1. //
  2. // ZIMRpcManager.h
  3. // DTFIdentityManager
  4. //
  5. // Created by richard on 26/02/2018.
  6. // Copyright © 2018 com. DTF.iphoneclient.DTF. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <DTFUtility/DTFUtility.h>
  10. #import <DTFUtility/DTFRPCProxyProtocol.h>
  11. /**
  12. * rpc结果回调
  13. *
  14. * @param success ()
  15. * @param result
  16. */
  17. @interface ZimRpcManager : NSObject
  18. @property(nonatomic, weak) id<DTFRPCProxyProtocol> rpcDelegate;
  19. //代理模式
  20. //- (void)doValidateRequetViaDelegate:(ZimValidateRequest * )request withcompletionBlock:(rpcCompletionBlock)blk;
  21. /**
  22. * zim init request
  23. *
  24. * @param request
  25. * @param blk result为ZimInitResponse
  26. */
  27. - (void)doFastUploadInitRequest:(ZimInitRequest * )request withcompletionBlock:(DTFRpcCompletionBlock)blk;
  28. /**
  29. * zim validate request
  30. *
  31. * @param request validate请求
  32. * @param blk result为ZimValidateResponse
  33. */
  34. - (void)doFastUploadValidateRequest:(ZimValidateRequest * )request withcompletionBlock:(DTFRpcCompletionBlock)blk;
  35. //OCR接口
  36. - (void) doSendOCRContent:(NSString*)certifyId idSide:(NSString*)side withImage:(NSData*)imageData withcompletionBlock:(rpcCompletionBlock)blk;
  37. // SMS 请求接口
  38. - (void)getSMSCode:(NSDictionary*)serviceParameters completionBlock:(DTFRpcCompletionBlock)blk;
  39. // SMS 验证接口
  40. - (void)verifySMSCode:(NSDictionary*)serviceParameters completionBlock:(DTFRpcCompletionBlock)blk;
  41. @end