feat(api): Контроллер изменения статуса задания робота, принимает робот ИД
This commit is contained in:
@@ -8,5 +8,11 @@ namespace PARR.API.Contracts.V1.Requests
|
||||
/// Статус робота
|
||||
/// </summary>
|
||||
public RobotStatusEnum RobotStatusCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Идентификатор робота
|
||||
/// </summary>
|
||||
public string? RobotId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +72,8 @@ namespace PARR.API.Controllers.V1
|
||||
HistoryLevel = (int)historyLevel,
|
||||
TaskStatusCode = config.TaskStatusCode,
|
||||
RobotConfigurationId = config.Id,
|
||||
RobotIp = clientService.GetClientIp()?.ToString()
|
||||
RobotIp = clientService.GetClientIp()?.ToString(),
|
||||
RobotId = request.RobotId
|
||||
};
|
||||
await robotHistoryService.CreateAsync(history);
|
||||
await robotHistoryService.CommitAsync();
|
||||
|
||||
Reference in New Issue
Block a user