YD_Event.Admin/YD_Event.Application/Certificate/Dtos/GenerateCertificateInput.cs

37 lines
822 B
C#
Raw Normal View History

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