WarnModel.cs 802 B

1234567891011121314151617181920212223242526272829303132333435
  1. using MessagePack;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Shaker.Model
  9. {
  10. public class WarnModel : TableBase
  11. {
  12. [Key(1)]
  13. public DateTime DateTime;
  14. [Key(2)]
  15. public string Message = string.Empty;
  16. [Key(3)]
  17. public string CliendID = string.Empty;
  18. [Key(4)]
  19. public string ShakerID = string.Empty;
  20. [Key(5)]
  21. public string UserID = string.Empty;
  22. [Key(6)]
  23. public WarnType WarnType = WarnType.Warning;
  24. }
  25. public enum WarnType
  26. {
  27. [Description("警告")]
  28. Warning,
  29. [Description("错误")]
  30. Error,
  31. [Description("全部")]
  32. All=255,
  33. }
  34. }