24 lines
795 B
C#
24 lines
795 B
C#
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; }
|
|
}
|
|
|