This commit is contained in:
Đăng Nguyễn
2025-11-06 14:14:10 +07:00
parent 99716cc414
commit 8736bad3e7
28 changed files with 931 additions and 146 deletions

View File

@@ -1,4 +1,6 @@
namespace RobotApp.Common.Shares.Dtos;
using System.ComponentModel.DataAnnotations;
namespace RobotApp.Common.Shares.Dtos;
#nullable disable
@@ -6,15 +8,22 @@ public record RobotSafetyConfigDto
{
public Guid Id { get; set; }
public double SafetySpeedVerySlow { get; set; }
[Range(0, 10, ErrorMessage = "Value must be from 0 to 10")]
public double SafetySpeedSlow { get; set; }
[Range(0, 10, ErrorMessage = "Value must be from 0 to 10")]
public double SafetySpeedNormal { get; set; }
[Range(0, 10, ErrorMessage = "Value must be from 0 to 10")]
public double SafetySpeedMedium { get; set; }
[Range(0, 10, ErrorMessage = "Value must be from 0 to 10")]
public double SafetySpeedOptimal { get; set; }
[Range(0, 10, ErrorMessage = "Value must be from 0 to 10")]
public double SafetySpeedFast { get; set; }
[Range(0, 10, ErrorMessage = "Value must be from 0 to 10")]
public double SafetySpeedVeryFast { 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; }
}