-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add more method in file manager
- Loading branch information
Showing
8 changed files
with
205 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
.../Passingwind.Abp.FileManagement.Application.Contracts/Files/IFileIntegrationAppService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.IO; | ||
using System.Threading.Tasks; | ||
using Volo.Abp; | ||
using Volo.Abp.Application.Services; | ||
|
||
namespace Passingwind.Abp.FileManagement.Files; | ||
|
||
[IntegrationService] | ||
public interface IFileIntegrationAppService : IApplicationService | ||
{ | ||
Task<FileContainerDto> GetContainerAsync(Guid id); | ||
|
||
Task<FileDto> GetAsync(string containerName, Guid id); | ||
|
||
Task<Stream?> GetStreamAsync(string containerName, Guid id); | ||
Task<byte[]> GetBytesAsync(string containerName, Guid id); | ||
|
||
Task<FileDto> CreateByStreamAsync(string containerName, FileCreateByStreamDto input); | ||
Task<FileDto> CreateByBytesAsync(string containerName, FileCreateByBytesDto input); | ||
} |
38 changes: 38 additions & 0 deletions
38
...agement/src/Passingwind.Abp.FileManagement.Application/Files/FileIntegrationAppService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
//using System; | ||
//using System.IO; | ||
//using System.Threading.Tasks; | ||
|
||
//namespace Passingwind.Abp.FileManagement.Files; | ||
|
||
//public class FileIntegrationAppService : FileManagementAppService, IFileIntegrationAppService | ||
//{ | ||
// public Task<FileDto> CreateByBytesAsync(string containerName, FileCreateByBytesDto input) | ||
// { | ||
// throw new NotImplementedException(); | ||
// } | ||
|
||
// public Task<FileDto> CreateByStreamAsync(string containerName, FileCreateByStreamDto input) | ||
// { | ||
// throw new NotImplementedException(); | ||
// } | ||
|
||
// public Task<FileDto> GetAsync(string containerName, Guid id) | ||
// { | ||
// throw new NotImplementedException(); | ||
// } | ||
|
||
// public Task<byte[]> GetBytesAsync(string containerName, Guid id) | ||
// { | ||
// throw new NotImplementedException(); | ||
// } | ||
|
||
// public Task<FileContainerDto> GetContainerAsync(Guid id) | ||
// { | ||
// throw new NotImplementedException(); | ||
// } | ||
|
||
// public Task<Stream?> GetStreamAsync(string containerName, Guid id) | ||
// { | ||
// throw new NotImplementedException(); | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.