Query.cs 685 B

12345678910111213141516171819202122232425262728
  1. using Application.Abstractions.Messaging;
  2. namespace Application.Features.Api.DonationGoal.GetConfig;
  3. public sealed record Query(int ChannelID) : IQuery<Response>;
  4. public sealed record Response(IReadOnlyList<GoalConfigItem> List);
  5. public sealed record GoalConfigItem(
  6. int ID,
  7. string Title,
  8. int Style,
  9. int StartAmount,
  10. int TargetAmount,
  11. DateTime? StartAt,
  12. DateTime? EndAt,
  13. bool IsShowPercent,
  14. string BarColor,
  15. string BarBackgroundColor,
  16. int BarHeightPx,
  17. int TitleFontSizePx,
  18. string TitleFontColor,
  19. int AmountFontSizePx,
  20. string AmountFontColor,
  21. string? TitleFontFamily,
  22. string? AmountFontFamily,
  23. bool IsActive
  24. );