AFServiceResponse.h 891 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // AFServiceResponse.h
  3. // AFServiceSDK
  4. //
  5. // Created by jiajunchen on 08/01/2018.
  6. // Copyright © 2018 antfin. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. /**
  10. 钱包服务调用结果状态吗
  11. - AFResSuccess: 默认值,业务调用成功,结果数据参见result字段
  12. - AFResInvalidService: service枚举值错误
  13. - AFResInvalidURL: 钱包回跳URL错误
  14. - AFResRepeatCall: 业务重复调用(3s内)
  15. - AFResOpenURLErr: 跳转失败
  16. */
  17. typedef NS_ENUM(NSUInteger, AFResCode) {
  18. AFResSuccess = 0,
  19. AFResInvalidService = 100,
  20. AFResInvalidURL,
  21. AFResRepeatCall,
  22. AFResOpenURLErr,
  23. };
  24. @interface AFServiceResponse : NSObject
  25. /**
  26. 业务调用状态吗
  27. */
  28. @property (nonatomic, assign) AFResCode responseCode;
  29. /**
  30. 业务结果Dictionary, 内容请参考具体业务方接入文档
  31. */
  32. @property (readonly) NSDictionary *result;
  33. @end