洛阳学员端
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.

55 lines
1.2 KiB

8 months ago
  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