YD_Event.Admin/YD_Event.Application/Certificate/Dtos/GenerateCertificateInput.cs
2026-03-03 16:46:02 +08:00

37 lines
822 B
C#

using System.ComponentModel.DataAnnotations;
namespace YD_Event.Application.Certificate.Dtos;
public class GenerateCertificateInput
{
/// <summary>
/// 证书配置ID
/// </summary>
[Required]
public long CertificateId { get; set; }
/// <summary>
/// 指定模板ID (可选, 默认使用激活版本)
/// </summary>
public long? TemplateId { get; set; }
/// <summary>
/// 业务数据 (键值对)
/// </summary>
public Dictionary<string, string> Data { get; set; }
}
public class BatchGenerateCertificateInput
{
/// <summary>
/// 证书配置ID
/// </summary>
[Required]
public long CertificateId { get; set; }
/// <summary>
/// 业务数据列表
/// </summary>
public List<Dictionary<string, string>> DataList { get; set; }
}