ApiAccountDTO.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. 
  2. using dodohold.core;
  3. using System.ComponentModel;
  4. using System.Runtime.CompilerServices;
  5. using System.Text.Json.Serialization;
  6. using TencentCloud.Mrs.V20200910.Models;
  7. using YunhuiKit;
  8. namespace molilian.core
  9. {
  10. [Table("api_account")]
  11. public class ApiAccountDTO
  12. {
  13. [Key]
  14. public int id { get; set; }
  15. public string name { get; set; } = string.Empty;
  16. public string description { get; set; } = string.Empty;
  17. public string api_key { get; set; } = string.Empty;
  18. public string api_secret { get; set; } = string.Empty;
  19. [IgnoreUpdate]
  20. [JsonConverter(typeof(NullableDateTimeConverter))]
  21. public DateTime create_time { get; set; }
  22. [JsonConverter(typeof(NullableDateTimeConverter))]
  23. public DateTime last_time { get; set; }
  24. [JsonConverter(typeof(NumericBooleanConverter))]
  25. public bool status { get; set; }
  26. [JsonConverter(typeof(NumericBooleanConverter))]
  27. public bool enable_report { get; set; }
  28. public string report_account_ids { get; set; } = string.Empty;
  29. public string report_exclude_account_ids { get; set; } = string.Empty;
  30. }
  31. }