TkDataDTO.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. /// 厂商放弃
  44. /// </summary>
  45. PartnersDrop = 110,
  46. /// <summary>
  47. /// 初筛1.5
  48. /// </summary>
  49. Prelim1_5 = 110,
  50. Captcha = 111,
  51. /// <summary>
  52. /// 初筛3
  53. /// </summary>
  54. Prelim3 = 112,
  55. ParseDeny = 113,
  56. }
  57. public class TkDataDTO
  58. {
  59. [Key]
  60. public long id { get; set; }
  61. public TkChannelEnum channel { get; set; }
  62. public LinkTypeEnum link_type { get; set; }
  63. public ChannelTypeEnum channel_type { get; set; } = ChannelTypeEnum.none;
  64. public int accountId { get; set; } = 0;
  65. public string accountName { get; set; } = string.Empty;
  66. public string proxy_node { get; set; } = string.Empty;
  67. public int tkEndpoint { get; set; } = 0;
  68. public bool success { get; set; } = true;
  69. public bool commercial { get; set; } = false;
  70. public string message { get; set; } = string.Empty;
  71. public string reason { get; set; } = string.Empty;
  72. public bool home_page { get; set; } = false;
  73. public string content { get; set; } = string.Empty;
  74. public string rawContent { get; set; } = string.Empty;
  75. public string rawContent2 { get; set; } = string.Empty;
  76. public string shortLinkurl { get; set; } = string.Empty;
  77. public string deeplink_url { get; set; } = string.Empty;
  78. public int with_middle_page { get; set; } = 0;
  79. public int elapsedTime { get; set; } = 0;
  80. public int elapsedTime2 { get; set; } = 0;
  81. public int elapsedTime3 { get; set; } = 0;
  82. public int retry_count { get; set; } = 0;
  83. public string ip { get; set; } = string.Empty;
  84. public string oaid { get; set; } = string.Empty;
  85. public string taoToken { get; set; } = string.Empty;
  86. public string num_iid { get; set; } = string.Empty;
  87. public string mktId { get; set; } = string.Empty;
  88. public string itemId { get; set; } = string.Empty;
  89. public string itemName { get; set; } = string.Empty;
  90. public decimal couponAmount { get; set; } = 0;
  91. public decimal promotionPrice { get; set; } = 0;
  92. public string pic { get; set; } = string.Empty;
  93. public string sellerNickName { get; set; } = string.Empty;
  94. public string shopTitle { get; set; } = string.Empty;
  95. public string qrCodeUrl { get; set; } = string.Empty;
  96. public DateTime create_time { get; set; } = DateTime.Now;
  97. [IgnoreInsert, IgnoreUpdate]
  98. public string couponEffectiveStartTime { get; set; } = string.Empty;
  99. [IgnoreInsert, IgnoreUpdate]
  100. public string couponEffectiveEndTime { get; set; } = string.Empty;
  101. public string end_point { get; set; } = string.Empty;
  102. public TkSubCodeEnum subCode { get; set; } = TkSubCodeEnum.Other;
  103. public string riskStrategy { get; set; } = string.Empty;
  104. public int launchScene { get; set; } = -1;
  105. public string parse_type { get; set; } = string.Empty;
  106. public string item_url { get; set; } = string.Empty;
  107. public string item_deeplink_url { get; set; } = string.Empty;
  108. public string remote_response { get; set; } = string.Empty;
  109. /// <summary>
  110. /// 搜同款时可能会用到
  111. /// </summary>
  112. public List<PromotionQueryItemDTO> PromotionImg = [];
  113. }
  114. }