using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using eprintServer.Entities; using eprintServer.Enums; namespace eprintServer.Requests.FormElement; public class CreateFormElementsRequest { [Required] public long StepId { get; set; } [Required] public List FormElements { get; set; } = new List(); } public class FormElementData { [Required] public List Label { get; set; } = new List(); [Required] public eprintServer.Enums.InputTypeEnum InputType { get; set; } [Required] public string FieldName { get; set; } = string.Empty; [Required] public bool IsRequired { get; set; } [Required] public int ElementOrder { get; set; } public string? DefaultValue { get; set; } public string? ValidationRules { get; set; } public string? Placeholder { get; set; } public PriceConfigTypeEnum? PriceConfigType { get; set; } public ColorPricingConfig? ColorPricingConfig { get; set; } public QuantityPricingConfig? QuantityPricingConfig { get; set; } }