MdpOutbox.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. namespace Admin.NET.Plugin.AiDOP.Entity.DataPlatform;
  2. /// <summary>
  3. /// MDP 出站回写 Outbox(幂等待推送表)。
  4. /// status: 0待推 1成功 2失败
  5. /// </summary>
  6. [SugarTable("mdp_outbox", "MDP出站回写Outbox")]
  7. public class MdpOutbox
  8. {
  9. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
  10. public long Id { get; set; }
  11. [SugarColumn(ColumnName = "tenant_id")]
  12. public long TenantId { get; set; }
  13. [SugarColumn(ColumnName = "target_source_code", Length = 100)]
  14. public string TargetSourceCode { get; set; } = string.Empty;
  15. [SugarColumn(ColumnName = "action_code", Length = 100)]
  16. public string ActionCode { get; set; } = string.Empty;
  17. [SugarColumn(ColumnName = "idem_key", Length = 200)]
  18. public string IdemKey { get; set; } = string.Empty;
  19. [SugarColumn(ColumnName = "payload_json", ColumnDataType = "text", IsNullable = true)]
  20. public string? PayloadJson { get; set; }
  21. [SugarColumn(ColumnName = "status")]
  22. public int Status { get; set; }
  23. [SugarColumn(ColumnName = "retry_count")]
  24. public int RetryCount { get; set; }
  25. /// <summary>下次可推时间;null 表示立即可推(WP10 S4b / D12)。</summary>
  26. [SugarColumn(ColumnName = "next_retry_time", IsNullable = true)]
  27. public DateTime? NextRetryTime { get; set; }
  28. /// <summary>最近一次错误码(如 SOURCE_ROUTE_UNRESOLVED / PAYLOAD_INVALID)。</summary>
  29. [SugarColumn(ColumnName = "last_error_code", Length = 64, IsNullable = true)]
  30. public string? LastErrorCode { get; set; }
  31. [SugarColumn(ColumnName = "response_json", ColumnDataType = "text", IsNullable = true)]
  32. public string? ResponseJson { get; set; }
  33. [SugarColumn(ColumnName = "error_msg", Length = 1000, IsNullable = true)]
  34. public string? ErrorMsg { get; set; }
  35. [SugarColumn(ColumnName = "create_time")]
  36. public DateTime CreateTime { get; set; }
  37. [SugarColumn(ColumnName = "update_time")]
  38. public DateTime UpdateTime { get; set; }
  39. }