Compare commits

...

2 Commits

Author SHA1 Message Date
d4b33d4b9a refactor(MappingProfile): add mapping for between TfFile and TfFileDto 2025-08-01 21:33:51 +02:00
4e5cb91967 feat(TfFile): create dto 2025-08-01 21:32:04 +02:00
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
namespace WorkFlow.Application.Dto;
public class TfFileDto
{
public string FFapth { get; set; } = null!;
public string? Headline { get; set; }
public string? Subline { get; set; }
public string? Comment { get; set; }
public string? Icon { get; set; }
}

View File

@@ -22,5 +22,6 @@ public class MappingProfile : AutoMapper.Profile
CreateMap<PObjectStateHist, ObjectStateHistDto>() CreateMap<PObjectStateHist, ObjectStateHistDto>()
.ForMember(dest => dest.Intl, opt => opt.MapFrom(src => src.State1 != null ? src.State1.IntlState : null)) .ForMember(dest => dest.Intl, opt => opt.MapFrom(src => src.State1 != null ? src.State1.IntlState : null))
.ForMember(dest => dest.Others, opt => opt.MapFrom(src => new string?[] { src.State2, src.State3, src.State4 })); .ForMember(dest => dest.Others, opt => opt.MapFrom(src => new string?[] { src.State2, src.State3, src.State4 }));
CreateMap<TfFile, TfFileDto>();
} }
} }