Sys_ExchangeRateRecord.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using OASystem.Domain.Enums;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.Entities.System
  8. {
  9. /// <summary>
  10. /// 汇率记录
  11. /// </summary>
  12. [SugarTable("Sys_ExchangeRateRecord")]
  13. public class Sys_ExchangeRateRecord : EntityBase
  14. {
  15. /// <summary>
  16. /// 团组Id
  17. /// </summary>
  18. [SugarColumn(ColumnDescription = "团组Id", IsNullable = true, DefaultValue = "NULL", ColumnDataType = "int")]
  19. public int? DiId { get; set; } = 0;
  20. /// <summary>
  21. /// 关联模块
  22. /// </summary>
  23. [SugarColumn(ColumnDescription = "关联模块", IsNullable = true, DefaultValue = "NULL", ColumnDataType = "varchar(50)")]
  24. public string? LinkModule { get; set; }
  25. /// <summary>
  26. /// 汇率日期
  27. /// </summary>
  28. [SugarColumn(ColumnDescription = "汇率日期", IsNullable = true, DefaultValue = "NULL", ColumnDataType = "datetime")]
  29. public DateTime? RateDateTime { get; set; }
  30. /// <summary>
  31. /// 数据来源
  32. /// </summary>
  33. [SugarColumn(ColumnDescription = "数据来源", IsNullable = true, DefaultValue = "NULL", ColumnDataType = "int")]
  34. public RateDataSourcesEnum RateDataSource { get; set; } = RateDataSourcesEnum.JuHeAPI;
  35. /// <summary>
  36. /// 汇率信息
  37. /// 美元(USD):7.5|欧元(EUR):8.5|英镑(GBP):9.59|日元(JPY):0.06|港币(HKD):0.97
  38. /// </summary>
  39. [SugarColumn(ColumnDescription = "汇率信息", IsNullable = true, DefaultValue = "NULL", ColumnDataType = "nvarchar(500)")]
  40. public string RateInfo { get; set; }
  41. }
  42. }