feat(api): Контроллер RobotTaskRobotStatusController управления статусами работы робота
This commit is contained in:
@@ -2,6 +2,21 @@
|
||||
{
|
||||
public class RobotConfigurationResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public DateTimeOffset DateCreated { get; set; }
|
||||
|
||||
public Guid TemplateId { get; set; }
|
||||
|
||||
public RobotResponse? Robot { get; set; }
|
||||
|
||||
public TaskStatusResponse? TaskStatus { get; set; }
|
||||
|
||||
public RobotStatusResponse? RobotStatus { get; set; }
|
||||
|
||||
public int AttemptsNumber { get; set; }
|
||||
|
||||
public DateTimeOffset? LastRobotStatusUpdated { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
9
PARR.API/Contracts/V1/Responses/RobotResponse.cs
Normal file
9
PARR.API/Contracts/V1/Responses/RobotResponse.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class RobotResponse
|
||||
{
|
||||
public int Code { get; set; }
|
||||
public required string Name { get; set; }
|
||||
public required string Description { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,12 @@
|
||||
{
|
||||
public class RobotTaskScheduleResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// RobotConfigurationId
|
||||
/// </summary>
|
||||
public Guid TaskId { get; set; }
|
||||
|
||||
|
||||
//TODO:
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
{
|
||||
public class RobotTaskTemplateResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// RobotConfigurationId
|
||||
/// </summary>
|
||||
public Guid TaskId { get; set; }
|
||||
|
||||
public bool IsActive { get; set; }
|
||||
public required string ClosingCode { get; set; }
|
||||
public required string FullDescription { get; set; }
|
||||
@@ -27,5 +32,7 @@
|
||||
|
||||
public required string WorkName { get; set; }
|
||||
public required string WorkEsppId { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
9
PARR.API/Contracts/V1/Responses/TaskStatusResponse.cs
Normal file
9
PARR.API/Contracts/V1/Responses/TaskStatusResponse.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class TaskStatusResponse
|
||||
{
|
||||
public int Code { get; set; }
|
||||
public required string Name { get; set; }
|
||||
public required string Description { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user