From 559127a93125560a57496777a0f452a26c151b6c Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 29 Jul 2025 21:41:54 +0200 Subject: [PATCH] feat(ReadButton): add dto and handler --- .../Buttons/ReadButton.cs | 29 +++++++++++++++++++ src/WorkFlow.Application/MappingProfile.cs | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 src/WorkFlow.Application/Buttons/ReadButton.cs diff --git a/src/WorkFlow.Application/Buttons/ReadButton.cs b/src/WorkFlow.Application/Buttons/ReadButton.cs new file mode 100644 index 0000000..583ece8 --- /dev/null +++ b/src/WorkFlow.Application/Buttons/ReadButton.cs @@ -0,0 +1,29 @@ +using DigitalData.Core.Abstractions; +using MediatR; + +namespace WorkFlow.Application.Buttons; + +public record ButtonDto : IUnique +{ + public int Id { get; init; } + + public required int ProfileId { get; init; } + + public byte? DialogNo { get; init; } + + public string? BtnType { get; init; } + + public string? Icon { get; init; } + + public string? ForeColor { get; init; } + + public string? BackColor { get; init; } + + public string? Command { get; init; } + + public string? DialogCommand { get; init; } + + public string? ConfirmationText { get; init; } +} + +public record ReadButtonRequest : IRequest; \ No newline at end of file diff --git a/src/WorkFlow.Application/MappingProfile.cs b/src/WorkFlow.Application/MappingProfile.cs index 1cbc983..4fad9d3 100644 --- a/src/WorkFlow.Application/MappingProfile.cs +++ b/src/WorkFlow.Application/MappingProfile.cs @@ -1,4 +1,5 @@ using AutoMapper; +using WorkFlow.Application.Buttons; using WorkFlow.Application.DTO.Config; using WorkFlow.Application.DTO.Profile; using WorkFlow.Application.DTO.ProfileControlsTF; @@ -18,6 +19,7 @@ namespace WorkFlow.Application CreateMap(); CreateMap(); CreateMap(); + CreateMap(); // Mapping create-DTO to entity CreateMap();