namespace YY.Admin.Core.Services; public record PrintDotPrinter(string Name, bool IsDefault); public interface IPrintDotService { /// 获取 PrintDot 打印机列表,同时验证连通性。 Task> GetPrintersAsync(CancellationToken ct = default); /// 发送 PDF base64 打印任务(content 可含或不含 data:application/pdf;base64, 前缀)。 Task PrintAsync(string printerName, string pdfBase64, string jobName = "QH-MES", int copies = 1, CancellationToken ct = default); }