This commit is contained in:
Đăng Nguyễn
2025-10-28 17:28:46 +07:00
parent 6eeed8c7b4
commit 643a34a4b4
22 changed files with 1575 additions and 72 deletions

View File

@@ -0,0 +1,20 @@
using RobotApp.Common.Shares.Enums;
namespace RobotApp.Common.Shares.Dtos;
#nullable disable
public record RobotConfigDto
{
public Guid Id { get; set; }
public NavigationType NavigationType { get; set; }
public double RadiusWheel { get; set; }
public double Width { get; set; }
public double Length { get; set; }
public double Height { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; } = true;
public string ConfigName { get; set; }
public string Description { get; set; }
}

View File

@@ -0,0 +1,16 @@
namespace RobotApp.Common.Shares.Dtos;
#nullable disable
public record RobotPlcConfigDto
{
public Guid Id { get; set; }
public string PLCAddress { get; set; }
public int PLCPort { get; set; }
public byte PLCUnitId { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; } = true;
public string ConfigName { get; set; }
public string Description { get; set; }
}

View File

@@ -0,0 +1,20 @@
namespace RobotApp.Common.Shares.Dtos;
#nullable disable
public record RobotSafetyConfig
{
public Guid Id { get; set; }
public double SafetySpeedVerySlow { get; set; }
public double SafetySpeedSlow { get; set; }
public double SafetySpeedNormal { get; set; }
public double SafetySpeedMedium { get; set; }
public double SafetySpeedOptimal { get; set; }
public double SafetySpeedFast { get; set; }
public double SafetySpeedVeryFast { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; } = true;
public string ConfigName { get; set; }
public string Description { get; set; }
}

View File

@@ -0,0 +1,18 @@
namespace RobotApp.Common.Shares.Dtos;
#nullable disable
public record RobotSimulationConfigDto
{
public Guid Id { get; set; }
public bool EnableSimulation { get; set; }
public double SimulationMaxVelocity { get; set; }
public double SimulationMaxAngularVelocity { get; set; }
public double SimulationAcceleration { get; set; }
public double SimulationDeceleration { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; } = true;
public string ConfigName { get; set; }
public string Description { get; set; }
}

View File

@@ -0,0 +1,23 @@
namespace RobotApp.Common.Shares.Dtos;
#nullable disable
public record RobotVDA5050ConfigDto
{
public Guid Id { get; set; }
public string SerialNumber { get; set; }
public string VDA5050HostServer { get; set; }
public int VDA5050Port { get; set; } = 1883;
public string VDA5050UserName { get; set; }
public string VDA5050Password { get; set; }
public string VDA5050Manufacturer { get; set; }
public string VDA5050Version { get; set; }
public int VDA5050PublishRepeat { get; set; }
public bool VDA5050EnablePassword { get; set; }
public bool VDA5050EnableTls { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; } = true;
public string ConfigName { get; set; }
public string Description { get; set; }
}