feat(api): в респонс истории робота, добавил инфу о роботе
This commit is contained in:
@@ -74,7 +74,9 @@ namespace PARR.API.MappingProfiles
|
||||
.ForMember(d => d.Applications, o => o.MapFrom(s => s.ApplicationsInHosts.Select(t => t.Application).OrderBy(t => t.Name)));
|
||||
// === Host ===
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Robot
|
||||
|
||||
CreateMap<RobotStatus, RobotStatusResponse>();
|
||||
|
||||
@@ -86,8 +88,10 @@ namespace PARR.API.MappingProfiles
|
||||
.ForMember(d => d.TaskId, o => o.MapFrom(s => s.RobotConfigurationId))
|
||||
.ForMember(d => d.TaskStatus, o => o.MapFrom(s => s.StatusTask))
|
||||
.ForMember(d => d.TemplateId, o => o.MapFrom(s => s.RobotConfiguration!.TemplateId))
|
||||
.ForMember(d => d.TemplateName, o => o.MapFrom(s => s.RobotConfiguration!.Template!.Name));
|
||||
.ForMember(d => d.TemplateName, o => o.MapFrom(s => s.RobotConfiguration!.Template!.Name))
|
||||
.ForMember(d => d.Robot, o => o.MapFrom(s => s.RobotConfiguration!.Robot));
|
||||
|
||||
#endregion
|
||||
|
||||
#region RobotConfiguration
|
||||
// --- RobotConfiguration ---
|
||||
|
||||
Reference in New Issue
Block a user