AdoS8NotificationLogDtos.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Microsoft.AspNetCore.Mvc;
  2. namespace Admin.NET.Plugin.AiDOP.Dto.S8;
  3. public class AdoS8NotificationLogQueryDto
  4. {
  5. public long TenantId { get; set; } = 1;
  6. public long FactoryId { get; set; } = 1;
  7. public long? ExceptionId { get; set; }
  8. public string? Channel { get; set; }
  9. public bool? Success { get; set; }
  10. public bool? Recovered { get; set; }
  11. /// <summary>关键字,匹配 payload / channel</summary>
  12. public string? Keyword { get; set; }
  13. [FromQuery(Name = "from")]
  14. public DateTime? CreatedAtStart { get; set; }
  15. [FromQuery(Name = "to")]
  16. public DateTime? CreatedAtEnd { get; set; }
  17. public int Page { get; set; } = 1;
  18. public int PageSize { get; set; } = 20;
  19. }
  20. public class AdoS8NotificationLogListItemDto
  21. {
  22. public long Id { get; set; }
  23. public long TenantId { get; set; }
  24. public long FactoryId { get; set; }
  25. public long? ExceptionId { get; set; }
  26. public string Channel { get; set; } = string.Empty;
  27. /// <summary>从 payload.targetCount 解析;解析失败返回 null</summary>
  28. public int? TargetCount { get; set; }
  29. /// <summary>从 payload.success 解析;解析失败返回 null</summary>
  30. public bool? Success { get; set; }
  31. /// <summary>从 payload.recovered 解析;解析失败返回 null</summary>
  32. public bool? Recovered { get; set; }
  33. /// <summary>从 payload.error 解析;解析失败返回 null</summary>
  34. public string? ErrorMessage { get; set; }
  35. public string? Payload { get; set; }
  36. public DateTime CreatedAt { get; set; }
  37. }