using System.ComponentModel.DataAnnotations; namespace YD_Event.Application.Certificate.Dtos; public class AddCertificateInput { /// /// 证书名称 /// [Required(ErrorMessage = "证书名称不能为空")] public string Name { get; set; } /// /// 证书模板内容(图片URL) /// [Required(ErrorMessage = "证书模板不能为空")] public string TemplateContent { get; set; } /// /// 排序 /// public int Sort { get; set; } }