feat: 初始功能

This commit is contained in:
Shiqvlizi Name
2026-05-23 18:16:50 +08:00
parent a5bfd8792e
commit 9a51259e9e
63 changed files with 5377 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
using CloudPrint.Client.Models;
namespace CloudPrint.Client.Services.Abstractions;
public interface IFileService
{
long MaxFileSizeBytes { get; }
IReadOnlyCollection<string> SupportedExtensions { get; }
bool IsSupported(string path);
FileValidationResult ValidateFile(string path, long? maxFileSizeBytes = null);
CloudPrintDocument CreateLocalDocument(string path);
CloudPrintDocument CopyToLibrary(string sourcePath, string libraryRoot, string categoryName, int categoryId = 0);
string PrepareForPrint(PrintJob job);
Task<FilePreparationResult> PrepareForPrintAsync(PrintJob job, string cacheRoot, CancellationToken cancellationToken = default);
}