41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
#nullable enable
|
|
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.Application.Services;
|
|
|
|
namespace Sozsoft.Platform.FileManagement;
|
|
|
|
public interface IFileManagementAppService : IApplicationService
|
|
{
|
|
Task<GetFilesDto> GetItemsAsync();
|
|
|
|
Task<GetFilesDto> GetItemsByParentAsync(string parentId);
|
|
|
|
Task<FileItemDto> CreateFolderAsync(CreateFolderDto input);
|
|
|
|
Task<FileItemDto> UploadFileAsync(UploadFileDto input);
|
|
|
|
Task<FileItemDto> RenameItemAsync(string id, RenameItemDto input);
|
|
|
|
Task<FileItemDto> MoveItemAsync(string id, MoveItemDto input);
|
|
|
|
Task DeleteItemAsync(string id);
|
|
|
|
Task<Stream> DownloadFileAsync(string id);
|
|
|
|
Task<Stream> GetFilePreviewAsync(string id);
|
|
|
|
Task<GetFilesDto> SearchItemsAsync(SearchFilesDto input);
|
|
|
|
Task<FolderPathDto> GetFolderPathAsync();
|
|
|
|
Task<FolderPathDto> GetFolderPathByIdAsync(string folderId);
|
|
|
|
Task BulkDeleteItemsAsync(BulkDeleteDto input);
|
|
|
|
Task<List<FileItemDto>> CopyItemsAsync(CopyItemsDto input);
|
|
|
|
Task<List<FileItemDto>> MoveItemsAsync(MoveItemsDto input);
|
|
}
|