新增打印模板管理功能,包含免密接口和实时通知机制,支持桌面端打印模板的查询和列表展示。更新相关控制器、服务和视图,优化用户体验并增强系统的实时数据同步能力。
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace YY.Admin.Core.Services;
|
||||
|
||||
public record PrintDotPrinter(string Name, bool IsDefault);
|
||||
|
||||
public interface IPrintDotService
|
||||
{
|
||||
/// <summary>获取 PrintDot 打印机列表,同时验证连通性。</summary>
|
||||
Task<IReadOnlyList<PrintDotPrinter>> GetPrintersAsync(CancellationToken ct = default);
|
||||
|
||||
/// <summary>发送 PDF base64 打印任务(content 可含或不含 data:application/pdf;base64, 前缀)。</summary>
|
||||
Task PrintAsync(string printerName, string pdfBase64, string jobName = "QH-MES", int copies = 1, CancellationToken ct = default);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using YY.Admin.Core.Entity;
|
||||
|
||||
namespace YY.Admin.Core.Services;
|
||||
|
||||
public interface IPrintTemplateService
|
||||
{
|
||||
Task<PrintTemplate?> GetByCodeAsync(string templateCode, CancellationToken ct = default);
|
||||
Task<IReadOnlyList<PrintTemplate>> ListAsync(CancellationToken ct = default);
|
||||
Task<IReadOnlyList<PrintTemplate>> RefreshCacheAsync(CancellationToken ct = default);
|
||||
IReadOnlyList<PrintTemplate> GetCached();
|
||||
}
|
||||
Reference in New Issue
Block a user