feat(api): RobotHistoryController - сохранение истории работы робота
This commit is contained in:
@@ -71,10 +71,10 @@
|
||||
public const string templateId = "{templateId}";
|
||||
}
|
||||
|
||||
public static class RobotTemplateHistory
|
||||
public static class RobotHistory
|
||||
{
|
||||
public const string GetAll = Base + "/robot-template-histories/";
|
||||
public const string Create = Base + "/robot-template-histories/";
|
||||
//public const string GetAll = Base + "/robot-histories/";
|
||||
public const string Create = Base + "/robot-histories/";
|
||||
}
|
||||
|
||||
public static class StatusTemplate
|
||||
|
||||
15
PARR.API/Contracts/V1/Requests/RobotHistoryRequest.cs
Normal file
15
PARR.API/Contracts/V1/Requests/RobotHistoryRequest.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using PARR.DAL.Contracts;
|
||||
|
||||
namespace PARR.API.Contracts.V1.Requests
|
||||
{
|
||||
public class RobotHistoryRequest
|
||||
{
|
||||
public RobotHistoryLevelEnum HistoryLevel { get; set; }
|
||||
|
||||
public string? RobotMessage { get; set; }
|
||||
|
||||
public string? EsppMessage { get; set; }
|
||||
|
||||
public Guid TaskId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
namespace PARR.API.Contracts.V1.Requests
|
||||
{
|
||||
public class RobotTemplateHistoryRequest
|
||||
{
|
||||
public int HistoryLevel { get; set; }
|
||||
|
||||
public string? RobotMessage { get; set; }
|
||||
|
||||
public string? EsppMessage { get; set; }
|
||||
|
||||
public Guid TemplateId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ИД серии - идентификатор полного цикла выполнения роботом текущего задания. Если не передать, сгенерируется автоматически, в дальнейшем в рамках шагов по текущему заданию использовать его.
|
||||
/// </summary>
|
||||
public Guid? IdSeries { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class RobotTemplateHistoryResponse
|
||||
public class RobotHistoryResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
@@ -10,13 +10,9 @@
|
||||
|
||||
public string? EsppMessage { get; set; }
|
||||
|
||||
public int TemplateStatusCode { get; set; }
|
||||
public int TaskStatusCode { get; set; }
|
||||
|
||||
public Guid TemplateId { get; set; }
|
||||
|
||||
public string TemplateName { get; set; } = string.Empty;
|
||||
|
||||
public Guid IdSeries { get; set; }
|
||||
public Guid TaskId { get; set; }
|
||||
|
||||
public RobotHistoryLevelResponse? Level { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user