2026-05-22 11:18:47 +08:00
|
|
|
using Avalonia_Common.Core;
|
2026-05-21 16:45:56 +08:00
|
|
|
using Avalonia_Services.Core;
|
|
|
|
|
|
|
|
|
|
namespace Avalonia_Services.Services.FileLibrary
|
|
|
|
|
{
|
|
|
|
|
public interface IFileLibraryEndpointService
|
|
|
|
|
{
|
2026-05-22 11:18:47 +08:00
|
|
|
Task<IApiResponse> GetDrivesAsync(ServiceEndpointContext ctx);
|
2026-05-21 16:45:56 +08:00
|
|
|
|
2026-05-22 11:18:47 +08:00
|
|
|
Task<IApiResponse> GetDirectoriesAsync(DirectoryQueryRequest request);
|
2026-05-21 16:45:56 +08:00
|
|
|
|
2026-05-22 11:18:47 +08:00
|
|
|
Task<IApiResponse> GetRootsAsync(ServiceEndpointContext ctx);
|
2026-05-21 16:45:56 +08:00
|
|
|
|
2026-05-22 11:18:47 +08:00
|
|
|
Task<IApiResponse> AddRootAsync(AddLibraryRootRequest request);
|
2026-05-21 16:45:56 +08:00
|
|
|
|
2026-05-22 11:18:47 +08:00
|
|
|
Task<IApiResponse> SetRootEnabledAsync(UpdateLibraryRootRequest request);
|
2026-05-21 16:45:56 +08:00
|
|
|
|
2026-05-22 11:18:47 +08:00
|
|
|
Task<IApiResponse> DeleteRootAsync(DeleteLibraryRootRequest request);
|
2026-05-21 16:45:56 +08:00
|
|
|
|
2026-05-22 11:18:47 +08:00
|
|
|
Task<IApiResponse> ScanRootAsync(ScanLibraryRootRequest request);
|
2026-05-21 16:45:56 +08:00
|
|
|
|
2026-05-22 11:18:47 +08:00
|
|
|
Task<IApiResponse> SearchFilesAsync(SearchFilesRequest request);
|
2026-05-21 16:45:56 +08:00
|
|
|
|
2026-05-22 11:18:47 +08:00
|
|
|
Task<IApiResponse> GetFileAsync(FileQueryRequest request);
|
2026-05-21 16:45:56 +08:00
|
|
|
|
2026-05-22 11:18:47 +08:00
|
|
|
Task<IApiResponse> GetTextPreviewAsync(FileQueryRequest request);
|
2026-05-21 16:45:56 +08:00
|
|
|
}
|
|
|
|
|
}
|