2026-05-22 14:29:22 +08:00
|
|
|
using FileShare_Common.Core;
|
|
|
|
|
using FileShare_Services.Core;
|
2026-05-21 16:45:56 +08:00
|
|
|
|
2026-05-22 14:29:22 +08:00
|
|
|
namespace FileShare_Services.Services.FileLibrary
|
2026-05-21 16:45:56 +08:00
|
|
|
{
|
|
|
|
|
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-22 11:59:45 +08:00
|
|
|
|
|
|
|
|
Task<IApiResponse> BrowseDirectoryAsync(BrowseDirectoryRequest request);
|
2026-05-21 16:45:56 +08:00
|
|
|
}
|
|
|
|
|
}
|