DTFRPCProxyProtocol.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // DTFRPCProxyProtocol.h
  3. // DTFUtility
  4. //
  5. // Created by mengbingchuan on 2023/6/7.
  6. // Copyright © 2023 com.alipay.iphoneclient.zoloz. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef void (^rpcCompletionBlock)(BOOL success, NSObject *result);
  10. typedef void (^DTFRpcCompletionBlock)(NSError *error, NSDictionary *data);
  11. @protocol DTFRPCProxyProtocol <NSObject>
  12. @required
  13. /**
  14. * ZimID初始化协议
  15. * key: data
  16. * value: jsonString
  17. */
  18. - (void)zimInit:(NSDictionary *)params completionBlock:(DTFRpcCompletionBlock)blk;
  19. /**
  20. * 结果认证
  21. * key: data
  22. * value: jsonString
  23. */
  24. - (void)zimValidate:(NSDictionary *)params completionBlock:(DTFRpcCompletionBlock)blk;
  25. @optional
  26. /**
  27. * NFC结果认证
  28. * key: data
  29. * value: jsonString
  30. */
  31. - (void)zimNFCValidate:(NSDictionary *)params completionBlock:(DTFRpcCompletionBlock)blk;
  32. /**
  33. * 请求发送验证码
  34. */
  35. - (void)requestSMSVerifyCode:(NSDictionary *)params completionBlock:(DTFRpcCompletionBlock)blk;
  36. /**
  37. * 验证码结果验证
  38. */
  39. - (void)checkSMSCode:(NSDictionary *)params completionBlock:(DTFRpcCompletionBlock)blk;
  40. /**
  41. * OCR识别认证
  42. */
  43. - (void)zimOCRIdentify:(NSDictionary *)params completionBlock:(DTFRpcCompletionBlock)blk;
  44. @end