From b693615561727efb1ca1cf063c6ce1e69ec6d76a Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 3 Nov 2025 14:30:45 +0100 Subject: [PATCH] feat(ThirdPartyModuleDto): create DTO of ThirdPartyModule with mapping profile --- .../Common/Dto/MappingProfile.cs | 1 + .../Common/Dto/ThirdPartyModuleDto.cs | 57 +++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 EnvelopeGenerator.Application/Common/Dto/ThirdPartyModuleDto.cs diff --git a/EnvelopeGenerator.Application/Common/Dto/MappingProfile.cs b/EnvelopeGenerator.Application/Common/Dto/MappingProfile.cs index 59d278e7..58b7e50f 100644 --- a/EnvelopeGenerator.Application/Common/Dto/MappingProfile.cs +++ b/EnvelopeGenerator.Application/Common/Dto/MappingProfile.cs @@ -36,6 +36,7 @@ public class MappingProfile : Profile CreateMap(); CreateMap(); CreateMap(); + CreateMap(); // DTO to Entity mappings CreateMap(); diff --git a/EnvelopeGenerator.Application/Common/Dto/ThirdPartyModuleDto.cs b/EnvelopeGenerator.Application/Common/Dto/ThirdPartyModuleDto.cs new file mode 100644 index 00000000..de758925 --- /dev/null +++ b/EnvelopeGenerator.Application/Common/Dto/ThirdPartyModuleDto.cs @@ -0,0 +1,57 @@ +namespace EnvelopeGenerator.Application.Common.Dto; + +/// +/// +/// +public record ThirdPartyModuleDto +{ + /// + /// + /// + public int Id { get; init; } + + /// + /// + /// + public bool Active { get; init; } + + /// + /// + /// + public string Name { get; init; } = default!; + + /// + /// + /// + public string? Description { get; init; } + + /// + /// + /// + public string License { get; init; } = default!; + + /// + /// + /// + public string Version { get; init; } = default!; + + /// + /// + /// + public string? AddedWho { get; init; } + + /// + /// + /// + public DateTime? AddedWhen { get; init; } + + /// + /// + /// + public string? ChangedWho { get; init; } + + /// + /// + /// + public DateTime? ChangedWhen { get; init; } +} \ No newline at end of file