OverrideRuleDTO.cs 887 B

123456789101112131415161718192021222324252627
  1. using dodohold.core;
  2. using System.Text.Json.Serialization;
  3. using YunhuiKit;
  4. namespace molilian.core
  5. {
  6. [Table("tk_override_rules")]
  7. public class OverrideRuleDTO
  8. {
  9. [Key]
  10. public int id { get; set; }
  11. public string platform { get; set; } = string.Empty;
  12. public string original_text { get; set; } = string.Empty;
  13. public string rule { get; set; } = string.Empty;
  14. public string output_text { get; set; } = string.Empty;
  15. public string output_type { get; set; } = string.Empty;
  16. [JsonConverter(typeof(NumericBooleanConverter))]
  17. public bool status { get; set; }
  18. [IgnoreUpdate]
  19. [JsonConverter(typeof(NullableDateTimeConverter))]
  20. public DateTime create_time { get; set; }
  21. [JsonConverter(typeof(NullableDateTimeConverter))]
  22. public DateTime last_time { get; set; }
  23. }
  24. }