using System.ComponentModel.DataAnnotations; namespace YD_Event.Application.Certificate.Dtos; public class SaveElementListInput { [Required(ErrorMessage = "模板ID不能为空")] public long TemplateId { get; set; } public List Elements { get; set; } } public class CertificateElementItemInput { public long? Id { get; set; } public string Type { get; set; } public string FieldName { get; set; } public string BindingKey { get; set; } public float X { get; set; } public float Y { get; set; } public float Width { get; set; } public float Height { get; set; } public string FontFamily { get; set; } = "Source Han Sans CN"; public float FontSize { get; set; } public string Color { get; set; } public string StyleJson { get; set; } public int Sort { get; set; } }