IJuHeApiService.cs 985 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using OASystem.Domain.Dtos.SmallFun;
  2. using OASystem.Domain.ViewModels.JuHeExchangeRate;
  3. namespace OASystem.API.OAMethodLib.JuHeAPI
  4. {
  5. /// <summary>
  6. /// 聚合Api 服务
  7. /// </summary>
  8. public interface IJuHeApiService
  9. {
  10. /// <summary>
  11. /// 获取汇率
  12. /// </summary>
  13. /// <returns></returns>
  14. Task<JuHeAPIResult> GetExchangeRateAsync();
  15. /// <summary>
  16. /// 获取汇率 Single
  17. /// </summary>
  18. /// <param name="currencyCode">币种code</param>
  19. /// <returns></returns>
  20. Task<Result> GetSingleRateAsync(string currencyCode);
  21. /// <summary>
  22. /// 获取汇率 Item
  23. /// </summary>
  24. /// <returns></returns>
  25. Task<Result> PostItemRateAsync(string[] currencyCodes);
  26. /// <summary>
  27. /// 获取汇率转换结果
  28. /// </summary>
  29. /// <returns></returns>
  30. Task<Result> GetExchangeRateAsync(ExchangeRateDto dto);
  31. }
  32. }