update
This commit is contained in:
@@ -1,16 +1,22 @@
|
||||
namespace RobotApp.Common.Shares.Dtos;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace RobotApp.Common.Shares.Dtos;
|
||||
|
||||
#nullable disable
|
||||
|
||||
public record RobotPlcConfigDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
[Required]
|
||||
public string PLCAddress { get; set; }
|
||||
[Range(1, 65535, ErrorMessage = "Value must be from 1 to 65535")]
|
||||
public int PLCPort { get; set; }
|
||||
[Range(1, 65535, ErrorMessage = "Value must be from 1 to 65535")]
|
||||
public int PLCUnitId { 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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user