123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- using System;
- using System.Collections.Generic;
- using System.Collections.Specialized;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OASystem.Domain.ViewModels.JuHeExchangeRate
- {
-
-
-
- public class JuHeAPIResult
- {
-
-
-
-
- public int Error_code { get; set; }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public string? Resultcode { get; set; }
-
-
-
- public string? Reason { get; set; }
-
-
-
- public object? Result { get; set; }
- public JuHeAPIResult() { }
- public JuHeAPIResult(int code, string reason)
- {
- Error_code = code;
- Resultcode = "-1 参数错误";
- Reason = reason;
- Result = new { };
- }
- public JuHeAPIResult(int code,string resultcode,string reason,object? result)
- {
- Error_code = code;
- Resultcode = resultcode;
- Reason = reason;
- Result = result;
- }
- }
-
-
-
- public class ExchangeRateModel
- {
-
-
-
- public string? Name { get; set; }
-
-
-
- public string? FBuyPri { get; set; }
-
-
-
- public string? MBuyPri { get; set; }
-
-
-
- public string? FSellPri { get; set; }
-
-
-
- public string? MSellPri { get; set; }
-
-
-
- public string? BankConversionPri { get; set; }
-
-
-
- public string? Date { get; set; }
-
-
-
- public string? Time { get; set; }
- }
-
-
-
- public record RateCurrencyModel
- {
-
-
-
- public string CurrencyName { get; set; }
-
-
-
- public string CurrencyCode{ get; set; }
- }
- public class JuHeTransResult
- {
- public int error_code { get; set; }
- public string reason { get; set; }
- public result result { get; set; }
- }
- public class result
- {
- public data data { get; set; }
- public string orderid { get; set; }
- }
- public class data {
- public string res { get; set; }
- public double confidence { get; set; }
- }
- public class ContinentInfoView
- {
- public string name { get; set; }
- public string name_en { get; set; }
- public TimezoneInfoView[] tz { get; set; }
- }
- public class TimezoneInfoView
- {
- public string tz_name { get; set; }
- public string tz_simple { get; set; }
- public string time { get; set; }
- public long timestamp { get; set; }
- public string timezone { get; set; }
- public string week { get; set; }
- public string timezone_abbreviation { get; set; }
- }
- }
|