TracksDTO.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using dodohold.core;
  3. namespace molilian.core
  4. {
  5. [Table("track_links")]
  6. public class TrackLinkDTO
  7. {
  8. [Key]
  9. public int id { get; set; }
  10. public string event_type { get; set; } = string.Empty;
  11. public string platform { get; set; } = string.Empty;
  12. public string typename
  13. {
  14. get => platform;
  15. set => platform = value;
  16. }
  17. public string scene { get; set; } = string.Empty;
  18. public string unique_id { get; set; } = string.Empty;
  19. public string path { get; set; } = string.Empty;
  20. public string description { get; set; } = string.Empty;
  21. public DateTime create_time { get; set; } = DateTime.Now;
  22. public DateTime update_time { get; set; } = DateTime.Now;
  23. }
  24. [Table("track_daily_report")]
  25. public class TrackDailyReportDTO
  26. {
  27. [Key]
  28. public int id { get; set; }
  29. public DateTime report_date { get; set; } = DateTime.Now.Date;
  30. public string event_type { get; set; } = string.Empty;
  31. public string platform { get; set; } = string.Empty;
  32. public string scene { get; set; } = string.Empty;
  33. public string unique_id { get; set; } = string.Empty;
  34. public int track_link_id { get; set; } = 0;
  35. public int event_count { get; set; } = 0;
  36. public DateTime create_time { get; set; } = DateTime.Now;
  37. public DateTime update_time { get; set; } = DateTime.Now;
  38. }
  39. [Table("track_request_logs")]
  40. public class TrackRequestLogDTO
  41. {
  42. [Key]
  43. public long id { get; set; }
  44. public int track_id { get; set; } = 0;
  45. public string event_type { get; set; } = string.Empty;
  46. public string platform { get; set; } = string.Empty;
  47. public string typename { get; set; } = string.Empty;
  48. public string scene { get; set; } = string.Empty;
  49. public string unique_id { get; set; } = string.Empty;
  50. public string ip { get; set; } = string.Empty;
  51. public string user_agent { get; set; } = string.Empty;
  52. public string referer { get; set; } = string.Empty;
  53. public DateTime create_time { get; set; } = DateTime.Now;
  54. }
  55. }