Compare commits
2 Commits
b859391ab1
...
d4b33d4b9a
| Author | SHA1 | Date | |
|---|---|---|---|
| d4b33d4b9a | |||
| 4e5cb91967 |
14
src/WorkFlow.Application/Dto/TfFileDto.cs
Normal file
14
src/WorkFlow.Application/Dto/TfFileDto.cs
Normal 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; }
|
||||||
|
}
|
||||||
@@ -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>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user