This commit is contained in:
Đăng Nguyễn
2025-11-04 10:57:41 +07:00
parent 70e27da4a2
commit 73038de662
12 changed files with 226 additions and 84 deletions

View File

@@ -1,4 +1,6 @@
namespace RobotApp.Common.Shares.Dtos;
using System.ComponentModel.DataAnnotations;
namespace RobotApp.Common.Shares.Dtos;
#nullable disable
@@ -6,13 +8,18 @@ public record RobotSimulationConfigDto
{
public Guid Id { get; set; }
public bool EnableSimulation { get; set; }
[Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")]
public double SimulationMaxVelocity { get; set; }
[Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")]
public double SimulationMaxAngularVelocity { get; set; }
[Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")]
public double SimulationAcceleration { get; set; }
[Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")]
public double SimulationDeceleration { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public bool IsActive { get; set; }
[Required]
public string ConfigName { get; set; }
public string Description { get; set; }
}