using System.ComponentModel.DataAnnotations;
namespace YD_Event.Application.Certificate.Dtos;
public class AddCertificateInput
{
///
/// 证书名称
///
[Required(ErrorMessage = "证书名称不能为空")]
public string Name { get; set; }
///
/// 证书标题
///
[Required(ErrorMessage = "证书标题不能为空")]
public string Title { get; set; }
///
/// 证书模板内容(图片/PDF URL)
///
[Required(ErrorMessage = "证书模板不能为空")]
public string TemplateContent { get; set; }
///
/// 模板类型:0-图片,1-PDF
///
public int TemplateType { get; set; }
///
/// 模板宽度 (px)
///
[Range(1, int.MaxValue, ErrorMessage = "宽度必须大于0")]
public int Width { get; set; }
///
/// 模板高度 (px)
///
[Range(1, int.MaxValue, ErrorMessage = "高度必须大于0")]
public int Height { get; set; }
///
/// 占位符配置 (JSON)
///
public string Placeholders { get; set; }
///
/// 颁发机构
///
[Required(ErrorMessage = "颁发机构不能为空")]
public string Issuer { get; set; }
///
/// 发放规则
///
public string IssueRule { get; set; }
///
/// 有效期(天)
///
public int? ValidityDays { get; set; }
///
/// 二维码地址
///
public string QrCodeUrl { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 排序
///
public int Sort { get; set; }
}