证书模块删除无用代码
This commit is contained in:
parent
cc3539025c
commit
b1e918e5cb
@ -32,34 +32,3 @@ public class CertificateModel
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int Height { get; set; }
|
public int Height { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 证书文档
|
|
||||||
/// </summary>
|
|
||||||
public class CertificateDocument
|
|
||||||
{
|
|
||||||
private readonly CertificateModel _model;
|
|
||||||
private readonly List<YD_Event.Core.Entities.CertificateElement> _elements;
|
|
||||||
private readonly Dictionary<string, string> _data;
|
|
||||||
private readonly string _qrCodeUrl;
|
|
||||||
|
|
||||||
public CertificateDocument(CertificateModel model, List<YD_Event.Core.Entities.CertificateElement> elements,
|
|
||||||
Dictionary<string, string> data, string qrCodeUrl)
|
|
||||||
{
|
|
||||||
_model = model;
|
|
||||||
_elements = elements;
|
|
||||||
_data = data;
|
|
||||||
_qrCodeUrl = qrCodeUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 生成PDF
|
|
||||||
/// </summary>
|
|
||||||
/// <returns>PDF字节数组</returns>
|
|
||||||
public byte[] GeneratePdf()
|
|
||||||
{
|
|
||||||
// 这里应该使用QuestPDF生成PDF
|
|
||||||
// 暂时返回空字节数组,实际项目中需要实现
|
|
||||||
return new byte[0];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@ -1,96 +0,0 @@
|
|||||||
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; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user