JuHeAPIResult.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.Specialized;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.ViewModels.JuHeExchangeRate
  8. {
  9. /// <summary>
  10. /// 聚合接口 Result
  11. /// </summary>
  12. public class JuHeAPIResult
  13. {
  14. /// <summary>
  15. /// 服务级错误码
  16. /// 202301 查询不到结果
  17. /// </summary>
  18. public int Error_code { get; set; }
  19. /// <summary>
  20. /// 系统级错误码
  21. /// 错误码 说明 旧版本(resultcode)
  22. /// 10001 错误的请求KEY 101
  23. /// 10002 该KEY无请求权限 102
  24. /// 10003 KEY过期 103
  25. /// 10004 错误的OPENID 104
  26. /// 10005 应用未审核超时,请提交认证 105
  27. /// 10007 未知的请求源 107
  28. /// 10008 被禁止的IP 108
  29. /// 10009 被禁止的KEY 109
  30. /// 10011 当前IP请求超过限制 111
  31. /// 10012 请求超过次数限制 112
  32. /// 10013 测试KEY超过请求限制 113
  33. /// 10014 系统内部异常(调用充值类业务时,请务必联系客服或通过订单查询接口检测订单,避免造成损失) 114
  34. /// 10020 接口维护 120
  35. /// 10021 接口停用 121
  36. /// </summary>
  37. public string? Resultcode { get; set; }
  38. /// <summary>
  39. /// 消息
  40. /// </summary>
  41. public string? Reason { get; set; }
  42. /// <summary>
  43. /// 数据源
  44. /// </summary>
  45. public object? Result { get; set; }
  46. }
  47. /// <summary>
  48. /// 汇率接口 返回实体类
  49. /// </summary>
  50. public class ExchangeRateModel
  51. {
  52. /// <summary>
  53. /// 货币名称
  54. /// </summary>
  55. public string? Name { get; set; }
  56. /// <summary>
  57. /// 现汇买入价
  58. /// </summary>
  59. public string? FBuyPri { get; set; }
  60. /// <summary>
  61. /// 现钞买入价
  62. /// </summary>
  63. public string? MBuyPri { get; set; }
  64. /// <summary>
  65. /// 现汇卖出价
  66. /// </summary>
  67. public string? FSellPri { get; set; }
  68. /// <summary>
  69. /// 现钞卖出价
  70. /// </summary>
  71. public string? MSellPri { get; set; }
  72. /// <summary>
  73. /// 银行折算价/中间价
  74. /// </summary>
  75. public string? BankConversionPri { get; set; }
  76. /// <summary>
  77. /// 发布日期
  78. /// </summary>
  79. public string? Date { get; set; }
  80. /// <summary>
  81. /// 发布时间
  82. /// </summary>
  83. public string? Time { get; set; }
  84. }
  85. /// <summary>
  86. /// 汇率 币种Model
  87. /// </summary>
  88. public record RateCurrencyModel
  89. {
  90. /// <summary>
  91. /// 币种名称
  92. /// </summary>
  93. public string CurrencyName { get; set; }
  94. /// <summary>
  95. /// 币种Code
  96. /// </summary>
  97. public string CurrencyCode{ get; set; }
  98. }
  99. public class JuHeTransResult
  100. {
  101. public int error_code { get; set; }
  102. public string reason { get; set; }
  103. public result result { get; set; }
  104. }
  105. public class result
  106. {
  107. public data data { get; set; }
  108. public string orderid { get; set; }
  109. }
  110. public class data {
  111. public string res { get; set; }
  112. public double confidence { get; set; }
  113. }
  114. }