UpdateConfigCommand.cs 984 B

123456789101112131415161718192021222324252627
  1. using MediatR;
  2. namespace Application.Features.Config.Commands
  3. {
  4. public sealed record UpdateConfigCommand(
  5. ConfigDto.BasicConfigDto? Basic = null,
  6. ConfigDto.ImagesConfigDto? Images = null,
  7. ConfigDto.MetaConfigDto? Meta = null,
  8. ConfigDto.CompanyConfigDto? Company = null,
  9. ConfigDto.AccountConfigDto? Account = null,
  10. ConfigDto.EmailTemplateConfigDto? EmailTemplate = null,
  11. ConfigDto.ExternalApiConfigDto? External = null,
  12. ConfigDto.PaymentConfigDto? Payment = null,
  13. UpdateConfigCommand.ImagesDeleteFlags? ImagesDelete = null
  14. ) : IRequest {
  15. public sealed record ImagesDeleteFlags(
  16. bool Favicon = false,
  17. bool LogoSquare = false,
  18. bool LogoHorizontal = false,
  19. bool OgDefault = false,
  20. bool TwitterImage = false,
  21. bool AppleTouchIcon = false,
  22. bool AppIcon192 = false,
  23. bool AppIcon512 = false
  24. );
  25. }
  26. }