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

13 lines
572 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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);
}