feat(api): RobotHistoryController - сохранение истории работы робота

This commit is contained in:
Mikhail Trubnikov
2023-10-06 13:58:10 +10:00
parent d334e46780
commit 9060db1fe4
14 changed files with 2228 additions and 187 deletions

View File

@@ -87,10 +87,10 @@ namespace PARR.API.MappingProfiles
CreateMap<RobotHistoryLevel, RobotHistoryLevelResponse>();
CreateMap<RobotTemplateHistory, RobotTemplateHistoryResponse>()
CreateMap<RobotHistory, RobotHistoryResponse>()
.ForMember(d => d.Level, o => o.MapFrom(s => s.RobotHistoryLevel))
.ForMember(d => d.Date, o => o.MapFrom(s => s.DateCreated))
.ForMember(d => d.TemplateName, o => o.MapFrom(s => s.Template!.Name));
.ForMember(d => d.TaskId, o => o.MapFrom(s => s.RobotConfigurationId));
// --- RobotConfiguration ---