Files
qhmes/yy-admin-master/YY.Admin.Core/Core/Services/IPrintDotService.cs

13 lines
572 B
C#
Raw Normal View History

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);
}