37 lines
822 B
C#
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; }
|
|
}
|