97 lines
2.9 KiB
C#
97 lines
2.9 KiB
C#
|
|
using System;
|
||
|
|
using SqlSugar;
|
||
|
|
|
||
|
|
namespace YD_Event.Core.Entities
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 证书元素表 (CertificateElement)
|
||
|
|
/// </summary>
|
||
|
|
[SugarTable("CertificateElement")]
|
||
|
|
public class CertificateElement : Entity<long>, ISoftDelete, ISortable
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 模板ID (关联 CertificateTemplate)
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "模板ID", IsNullable = false)]
|
||
|
|
public long TemplateId { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 元素类型: Text, Image, QRCode
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "元素类型", IsNullable = false)]
|
||
|
|
public string Type { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 字段名/标签 (维护用)
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "字段名", IsNullable = true)]
|
||
|
|
public string FieldName { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 绑定键 (业务数据字段)
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "绑定键", IsNullable = true)]
|
||
|
|
public string BindingKey { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// X坐标 (px)
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "X坐标", IsNullable = false)]
|
||
|
|
public float X { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Y坐标 (px)
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "Y坐标", IsNullable = false)]
|
||
|
|
public float Y { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 宽度 (px)
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "宽度", IsNullable = false)]
|
||
|
|
public float Width { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 高度 (px)
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "高度", IsNullable = false)]
|
||
|
|
public float Height { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 字体
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "字体", DefaultValue = "Source Han Sans CN", IsNullable = true)]
|
||
|
|
public string FontFamily { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 字号
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "字号", IsNullable = false)]
|
||
|
|
public float FontSize { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 颜色代码 #RRGGBB
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "颜色", IsNullable = true)]
|
||
|
|
public string Color { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 额外样式 JSON
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "额外样式", IsNullable = true, IsJson = true)]
|
||
|
|
public string StyleJson { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 排序
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "排序")]
|
||
|
|
public int Sort { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 软删除
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(ColumnDescription = "软删除")]
|
||
|
|
public bool DeleteMark { get; set; }
|
||
|
|
}
|
||
|
|
}
|