TkDataDTO.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. using dodohold.core;
  2. namespace molilian.core
  3. {
  4. public enum TkSubCodeEnum
  5. {
  6. /// <summary>
  7. /// 初筛1
  8. /// </summary>
  9. Prelim1 = 101,
  10. /// <summary>
  11. /// 初筛2
  12. /// </summary>
  13. Prelim2 = 102,
  14. /// <summary>
  15. /// 流量控制
  16. /// </summary>
  17. TrafficCtrl = 103,
  18. /// <summary>
  19. /// 非标链接
  20. /// </summary>
  21. NonStdLink = 104,
  22. /// <summary>
  23. /// 其他推广
  24. /// </summary>
  25. OtherPromo = 105,
  26. /// <summary>
  27. /// 链接不可转
  28. /// </summary>
  29. NoConvert = 106,
  30. /// <summary>
  31. /// 网络错误
  32. /// </summary>
  33. NetError = 107,
  34. /// <summary>
  35. /// 转链成功
  36. /// </summary>
  37. Success = 108,
  38. /// <summary>
  39. /// 其他
  40. /// </summary>
  41. Other = 109,
  42. /// <summary>
  43. /// 初筛1.5
  44. /// </summary>
  45. Prelim1_5 = 110,
  46. }
  47. public class TkDataDTO
  48. {
  49. [Key]
  50. public long id { get; set; }
  51. public TkChannelEnum channel { get; set; }
  52. public LinkTypeEnum link_type { get; set; }
  53. public ChannelTypeEnum channel_type { get; set; } = ChannelTypeEnum.none;
  54. public int accountId { get; set; } = 0;
  55. public string accountName { get; set; } = string.Empty;
  56. public bool success { get; set; } = true;
  57. public string message { get; set; } = string.Empty;
  58. public string reason { get; set; } = string.Empty;
  59. public string content { get; set; } = string.Empty;
  60. public string rawContent { get; set; } = string.Empty;
  61. public string rawContent2 { get; set; } = string.Empty;
  62. public string shortLinkurl { get; set; } = string.Empty;
  63. public string deeplink_url { get; set; } = string.Empty;
  64. public int elapsedTime { get; set; } = 0;
  65. public int elapsedTime2 { get; set; } = 0;
  66. public int elapsedTime3 { get; set; } = 0;
  67. public string ip { get; set; } = string.Empty;
  68. public string oaid { get; set; } = string.Empty;
  69. public string taoToken { get; set; } = string.Empty;
  70. public string num_iid { get; set; } = string.Empty;
  71. public string itemId { get; set; } = string.Empty;
  72. public string itemName { get; set; } = string.Empty;
  73. public decimal couponAmount { get; set; } = 0;
  74. public decimal promotionPrice { get; set; } = 0;
  75. public string pic { get; set; } = string.Empty;
  76. public string sellerNickName { get; set; } = string.Empty;
  77. public string shopTitle { get; set; } = string.Empty;
  78. public string qrCodeUrl { get; set; } = string.Empty;
  79. public DateTime create_time { get; set; } = DateTime.Now;
  80. [IgnoreInsert, IgnoreUpdate]
  81. public string couponEffectiveStartTime { get; set; } = string.Empty;
  82. [IgnoreInsert, IgnoreUpdate]
  83. public string couponEffectiveEndTime { get; set; } = string.Empty;
  84. public string end_point { get; set; } = string.Empty;
  85. public TkSubCodeEnum subCode { get; set; } = TkSubCodeEnum.Other;
  86. }
  87. }