2026-03-04 12:13:49 +08:00
|
|
|
using System;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace YD_Event.Core.Entities
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 证书占位符表 (CertificatePlaceholder)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarTable("CertificatePlaceholder")]
|
2026-08-30 21:46:05 +08:00
|
|
|
public class CertificatePlaceholder : Entity<long>, ISoftDelete, ISortable,
|
|
|
|
|
ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
|
2026-03-04 12:13:49 +08:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 模板ID (关联 CertificateTemplate)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "模板ID", IsNullable = false)]
|
|
|
|
|
public long TemplateId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 占位符键名 (如: UserName, CourseName)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "占位符键名", IsNullable = false)]
|
|
|
|
|
public string PlaceholderKey { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 占位符显示名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "占位符显示名称", IsNullable = true)]
|
|
|
|
|
public string DisplayName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 占位符类型: Text/Image/QRCode/Date
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "占位符类型", IsNullable = false, DefaultValue = "Text")]
|
|
|
|
|
public string PlaceholderType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 默认值
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "默认值", IsNullable = true)]
|
|
|
|
|
public string DefaultValue { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否必填
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "是否必填", DefaultValue = "0")]
|
|
|
|
|
public bool IsRequired { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 验证正则表达式
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "验证正则表达式", IsNullable = true)]
|
|
|
|
|
public string ValidationRule { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 描述信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "描述信息", IsNullable = true)]
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 排序
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "排序")]
|
|
|
|
|
public int Sort { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 软删除
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "软删除")]
|
|
|
|
|
public bool DeleteMark { get; set; }
|
2026-08-30 21:46:05 +08:00
|
|
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "创建人ID")]
|
|
|
|
|
public long CreatedUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "创建时间")]
|
|
|
|
|
public DateTime CreatedTime { get; set; }
|
|
|
|
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "修改人ID", IsNullable = true)]
|
|
|
|
|
public long? UpdatedUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "修改时间", IsNullable = true)]
|
|
|
|
|
public DateTime? UpdatedTime { get; set; }
|
2026-03-04 12:13:49 +08:00
|
|
|
}
|
|
|
|
|
}
|