Initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace RobotNet10.MapEditor.Shared.DTOs.Requests;
|
||||
|
||||
/// <summary>
|
||||
/// Request to create a new layout
|
||||
/// </summary>
|
||||
public class CreateLayoutRequest
|
||||
{
|
||||
[Required(ErrorMessage = "LayoutId is required")]
|
||||
[StringLength(64, ErrorMessage = "LayoutId must not exceed 64 characters")]
|
||||
public string LayoutId { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "LayoutName is required")]
|
||||
[StringLength(256, ErrorMessage = "LayoutName must not exceed 256 characters")]
|
||||
public string LayoutName { get; set; } = string.Empty;
|
||||
|
||||
[StringLength(10000, ErrorMessage = "Description must not exceed 10000 characters")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
public string? CreatedBy { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user