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,5 @@
using RobotApp.Common.Shares.Enums;
using System.ComponentModel.DataAnnotations;
namespace RobotApp.Common.Shares.Dtos;
@@ -8,13 +9,18 @@ public record RobotConfigDto
{
public Guid Id { get; set; }
public NavigationType NavigationType { get; set; }
[Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")]
public double RadiusWheel { get; set; }
[Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")]
public double Width { get; set; }
[Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")]
public double Length { get; set; }
[Range(0.1, 10, ErrorMessage = "Value must be from 0.1 to 10")]
public double Height { 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; }
}