From ada08c6480e32e99899fe9ca3395fa1c9ca21cda Mon Sep 17 00:00:00 2001 From: colin Date: Mon, 3 Mar 2025 21:03:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(oss):=20=E5=A2=9E=E5=8A=A0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BB=A3=E7=90=86=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OssManagementBlobProvider.cs | 53 +- .../Abp/OssManagement/IFileAppService.cs | 2 +- .../Integration/GetOssObjectExistsResult.cs | 6 + .../IOssObjectIntegrationService.cs | 18 + .../OssManagementRemoteServiceConsts.cs | 2 + .../Abp/OssManagement/FileAppServiceBase.cs | 2 +- .../OssObjectIntegrationService.cs | 94 + .../OssManagement/PrivateFileAppService.cs | 4 +- .../Abp/OssManagement/PublicFileAppService.cs | 4 +- ...sObjectIntegrationClientProxy.Generated.cs | 54 + .../OssObjectIntegrationClientProxy.cs | 7 + .../OssContainerClientProxy.Generated.cs | 59 + .../OssManagement/OssContainerClientProxy.cs | 7 + .../OssObjectClientProxy.Generated.cs | 60 + .../Abp/OssManagement/OssObjectClientProxy.cs | 7 + .../PrivateFilesClientProxy.Generated.cs | 73 + .../OssManagement/PrivateFilesClientProxy.cs | 7 + .../PublicFilesClientProxy.Generated.cs | 60 + .../OssManagement/PublicFilesClientProxy.cs | 7 + .../StaticFilesClientProxy.Generated.cs | 28 + .../OssManagement/StaticFilesClientProxy.cs | 7 + .../oss-management-generate-proxy.json | 2834 +++++++++++++++++ ...UN.Abp.OssManagement.HttpApi.Client.csproj | 8 + .../AbpOssManagementHttpApiClientModule.cs | 2 +- .../LINGYUN.Abp.OssManagement.HttpApi.csproj | 2 +- .../OssObjectIntegrationController.cs | 47 + .../OssManagement/PrivateFilesController.cs | 4 +- .../OssManagement/PublicFilesController.cs | 4 +- 28 files changed, 3414 insertions(+), 48 deletions(-) create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/Integration/GetOssObjectExistsResult.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/Integration/IOssObjectIntegrationService.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationService.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationClientProxy.Generated.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationClientProxy.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssContainerClientProxy.Generated.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssContainerClientProxy.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssObjectClientProxy.Generated.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssObjectClientProxy.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PrivateFilesClientProxy.Generated.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PrivateFilesClientProxy.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PublicFilesClientProxy.Generated.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PublicFilesClientProxy.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/StaticFilesClientProxy.Generated.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/StaticFilesClientProxy.cs create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/oss-management-generate-proxy.json create mode 100644 aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationController.cs diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.BlobStoring.OssManagement/LINGYUN/Abp/BlobStoring/OssManagement/OssManagementBlobProvider.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.BlobStoring.OssManagement/LINGYUN/Abp/BlobStoring/OssManagement/OssManagementBlobProvider.cs index 44b99675a..c14164118 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.BlobStoring.OssManagement/LINGYUN/Abp/BlobStoring/OssManagement/OssManagementBlobProvider.cs +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.BlobStoring.OssManagement/LINGYUN/Abp/BlobStoring/OssManagement/OssManagementBlobProvider.cs @@ -1,4 +1,5 @@ using LINGYUN.Abp.OssManagement; +using LINGYUN.Abp.OssManagement.Integration; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using System; @@ -14,9 +15,9 @@ public class OssManagementBlobProvider : BlobProviderBase, ITransientDependency { public ILogger Logger { protected get; set; } - private readonly IOssObjectAppService _ossObjectAppService; + private readonly IOssObjectIntegrationService _ossObjectAppService; public OssManagementBlobProvider( - IOssObjectAppService ossObjectAppService) + IOssObjectIntegrationService ossObjectAppService) { _ossObjectAppService = ossObjectAppService; @@ -37,47 +38,27 @@ public class OssManagementBlobProvider : BlobProviderBase, ITransientDependency public override async Task ExistsAsync(BlobProviderExistsArgs args) { - try - { - var configuration = args.Configuration.GetOssManagementConfiguration(); - var oss = await _ossObjectAppService.GetAsync(new GetOssObjectInput - { - Bucket = configuration.Bucket, - Path = GetOssPath(args), - Object = GetOssName(args), - }); - return oss != null; - } - catch (Exception ex) + var configuration = args.Configuration.GetOssManagementConfiguration(); + var result = await _ossObjectAppService.ExistsAsync(new GetOssObjectInput { - Logger.LogWarning("An error occurred while getting the OSS object, always returning that the object does not exist"); - Logger.LogWarning(ex.Message); - - return false; - } + Bucket = configuration.Bucket, + Path = GetOssPath(args), + Object = GetOssName(args), + }); + return result.IsExists; } public override async Task GetOrNullAsync(BlobProviderGetArgs args) { - try - { - var configuration = args.Configuration.GetOssManagementConfiguration(); - var content = await _ossObjectAppService.GetContentAsync(new GetOssObjectInput - { - Bucket = configuration.Bucket, - Path = GetOssPath(args), - Object = GetOssName(args), - }); - - return content?.GetStream(); - } - catch (Exception ex) + var configuration = args.Configuration.GetOssManagementConfiguration(); + var content = await _ossObjectAppService.GetAsync(new GetOssObjectInput { - Logger.LogWarning("An error occurred while getting the OSS object and an empty data stream will be returned"); - Logger.LogWarning(ex.Message); + Bucket = configuration.Bucket, + Path = GetOssPath(args), + Object = GetOssName(args), + }); - return null; - } + return content?.GetStream(); } public override async Task SaveAsync(BlobProviderSaveArgs args) diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/IFileAppService.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/IFileAppService.cs index d32e3b3c9..0f1a2cf8e 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/IFileAppService.cs +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/IFileAppService.cs @@ -13,7 +13,7 @@ public interface IFileAppService : IApplicationService Task> GetListAsync(GetFilesInput input); - Task UploadAsync(UploadFileChunkInput input); + Task UploadChunkAsync(UploadFileChunkInput input); Task DeleteAsync(GetPublicFileInput input); } diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/Integration/GetOssObjectExistsResult.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/Integration/GetOssObjectExistsResult.cs new file mode 100644 index 000000000..5e3b63333 --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/Integration/GetOssObjectExistsResult.cs @@ -0,0 +1,6 @@ +namespace LINGYUN.Abp.OssManagement.Integration; + +public class GetOssObjectExistsResult +{ + public bool IsExists { get; set; } +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/Integration/IOssObjectIntegrationService.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/Integration/IOssObjectIntegrationService.cs new file mode 100644 index 000000000..e66b6f240 --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/Integration/IOssObjectIntegrationService.cs @@ -0,0 +1,18 @@ +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Services; +using Volo.Abp.Content; + +namespace LINGYUN.Abp.OssManagement.Integration; + +[IntegrationService] +public interface IOssObjectIntegrationService : IApplicationService +{ + Task CreateAsync(CreateOssObjectInput input); + + Task DeleteAsync(GetOssObjectInput input); + + Task ExistsAsync(GetOssObjectInput input); + + Task GetAsync(GetOssObjectInput input); +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/OssManagementRemoteServiceConsts.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/OssManagementRemoteServiceConsts.cs index 2d40aad5b..0c918d364 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/OssManagementRemoteServiceConsts.cs +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/OssManagementRemoteServiceConsts.cs @@ -3,4 +3,6 @@ public static class OssManagementRemoteServiceConsts { public const string RemoteServiceName = "AbpOssManagement"; + + public const string ModuleName = "oss-management"; } diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileAppServiceBase.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileAppServiceBase.cs index 43deed492..8c8e94a9a 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileAppServiceBase.cs +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileAppServiceBase.cs @@ -31,7 +31,7 @@ public abstract class FileAppServiceBase : OssManagementApplicationServiceBase, } [RequiresFeature(AbpOssManagementFeatureNames.OssObject.UploadFile)] - public async virtual Task UploadAsync(UploadFileChunkInput input) + public async virtual Task UploadChunkAsync(UploadFileChunkInput input) { input.Bucket = GetCurrentBucket(); input.Path = GetCurrentPath(HttpUtility.UrlDecode(input.Path)); diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationService.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationService.cs new file mode 100644 index 000000000..1c4ec170d --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationService.cs @@ -0,0 +1,94 @@ +using System; +using System.IO; +using System.Threading.Tasks; +using System.Web; +using Volo.Abp.Content; + +namespace LINGYUN.Abp.OssManagement.Integration; + +public class OssObjectIntegrationService : OssManagementApplicationServiceBase, IOssObjectIntegrationService +{ + protected FileUploadMerger Merger { get; } + protected IOssContainerFactory OssContainerFactory { get; } + + public OssObjectIntegrationService( + FileUploadMerger merger, + IOssContainerFactory ossContainerFactory) + { + Merger = merger; + OssContainerFactory = ossContainerFactory; + } + + public async virtual Task CreateAsync(CreateOssObjectInput input) + { + // 内容为空时建立目录 + if (input.File == null || !input.File.ContentLength.HasValue) + { + var oss = CreateOssContainer(); + var request = new CreateOssObjectRequest( + HttpUtility.UrlDecode(input.Bucket), + HttpUtility.UrlDecode(input.FileName), + Stream.Null, + HttpUtility.UrlDecode(input.Path)); + var ossObject = await oss.CreateObjectAsync(request); + + return ObjectMapper.Map(ossObject); + } + else + { + var ossObject = await Merger.MergeAsync(input); + + return ObjectMapper.Map(ossObject); + } + } + + public async virtual Task DeleteAsync(GetOssObjectInput input) + { + var oss = CreateOssContainer(); + + await oss.DeleteObjectAsync(input.Bucket, input.Object, input.Path); + } + + public async virtual Task ExistsAsync(GetOssObjectInput input) + { + try + { + var oss = CreateOssContainer(); + + var ossObject = await oss.GetObjectAsync(input.Bucket, input.Object, input.Path, input.MD5); + + return new GetOssObjectExistsResult + { + IsExists = ossObject != null + }; + } + catch (Exception) + { + return new GetOssObjectExistsResult + { + IsExists = false, + }; + } + } + + public async virtual Task GetAsync(GetOssObjectInput input) + { + try + { + var oss = CreateOssContainer(); + + var ossObject = await oss.GetObjectAsync(input.Bucket, input.Object, input.Path, input.MD5); + + return new RemoteStreamContent(ossObject.Content, ossObject.Name); + } + catch (Exception) + { + return new RemoteStreamContent(Stream.Null); + } + } + + protected virtual IOssContainer CreateOssContainer() + { + return OssContainerFactory.Create(); + } +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/PrivateFileAppService.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/PrivateFileAppService.cs index 8326d3309..9dd60a2ef 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/PrivateFileAppService.cs +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/PrivateFileAppService.cs @@ -93,9 +93,9 @@ public class PrivateFileAppService : FileAppServiceBase, IPrivateFileAppService } [Authorize] - public override async Task UploadAsync(UploadFileChunkInput input) + public override async Task UploadChunkAsync(UploadFileChunkInput input) { - await base.UploadAsync(input); + await base.UploadChunkAsync(input); } [Authorize] diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/PublicFileAppService.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/PublicFileAppService.cs index 1d446c1fe..99929c2e0 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/PublicFileAppService.cs +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/PublicFileAppService.cs @@ -28,12 +28,12 @@ public class PublicFileAppService : FileAppServiceBase, IPublicFileAppService await base.DeleteAsync(input); } - public override async Task UploadAsync(UploadFileChunkInput input) + public override async Task UploadChunkAsync(UploadFileChunkInput input) { await CheckPublicAccessAsync(); await FeatureChecker.CheckEnabledAsync(AbpOssManagementFeatureNames.OssObject.UploadFile); - await base.UploadAsync(input); + await base.UploadChunkAsync(input); } [RequiresLimitFeature( diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationClientProxy.Generated.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationClientProxy.Generated.cs new file mode 100644 index 000000000..7e5564ba8 --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationClientProxy.Generated.cs @@ -0,0 +1,54 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.OssManagement; +using LINGYUN.Abp.OssManagement.Integration; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Content; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.OssManagement.Integration; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IOssObjectIntegrationService), typeof(OssObjectIntegrationClientProxy))] +[IntegrationService] +public partial class OssObjectIntegrationClientProxy : ClientProxyBase, IOssObjectIntegrationService +{ + public virtual async Task CreateAsync(CreateOssObjectInput input) + { + return await RequestAsync(nameof(CreateAsync), new ClientProxyRequestTypeValue + { + { typeof(CreateOssObjectInput), input } + }); + } + + public virtual async Task DeleteAsync(GetOssObjectInput input) + { + await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue + { + { typeof(GetOssObjectInput), input } + }); + } + + public virtual async Task ExistsAsync(GetOssObjectInput input) + { + return await RequestAsync(nameof(ExistsAsync), new ClientProxyRequestTypeValue + { + { typeof(GetOssObjectInput), input } + }); + } + + public virtual async Task GetAsync(GetOssObjectInput input) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(GetOssObjectInput), input } + }); + } +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationClientProxy.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationClientProxy.cs new file mode 100644 index 000000000..49dc5b8b7 --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of OssObjectIntegrationClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.OssManagement.Integration; + +public partial class OssObjectIntegrationClientProxy +{ +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssContainerClientProxy.Generated.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssContainerClientProxy.Generated.cs new file mode 100644 index 000000000..919b8d23a --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssContainerClientProxy.Generated.cs @@ -0,0 +1,59 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.OssManagement; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.OssManagement; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IOssContainerAppService), typeof(OssContainerClientProxy))] +public partial class OssContainerClientProxy : ClientProxyBase, IOssContainerAppService +{ + public virtual async Task CreateAsync(string name) + { + return await RequestAsync(nameof(CreateAsync), new ClientProxyRequestTypeValue + { + { typeof(string), name } + }); + } + + public virtual async Task DeleteAsync(string name) + { + await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue + { + { typeof(string), name } + }); + } + + public virtual async Task GetAsync(string name) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(string), name } + }); + } + + public virtual async Task GetListAsync(GetOssContainersInput input) + { + return await RequestAsync(nameof(GetListAsync), new ClientProxyRequestTypeValue + { + { typeof(GetOssContainersInput), input } + }); + } + + public virtual async Task GetObjectListAsync(GetOssObjectsInput input) + { + return await RequestAsync(nameof(GetObjectListAsync), new ClientProxyRequestTypeValue + { + { typeof(GetOssObjectsInput), input } + }); + } +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssContainerClientProxy.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssContainerClientProxy.cs new file mode 100644 index 000000000..55ae1dfc5 --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssContainerClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of OssContainerClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.OssManagement; + +public partial class OssContainerClientProxy +{ +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssObjectClientProxy.Generated.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssObjectClientProxy.Generated.cs new file mode 100644 index 000000000..6c8fc85ef --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssObjectClientProxy.Generated.cs @@ -0,0 +1,60 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.OssManagement; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Content; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.OssManagement; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IOssObjectAppService), typeof(OssObjectClientProxy))] +public partial class OssObjectClientProxy : ClientProxyBase, IOssObjectAppService +{ + public virtual async Task CreateAsync(CreateOssObjectInput input) + { + return await RequestAsync(nameof(CreateAsync), new ClientProxyRequestTypeValue + { + { typeof(CreateOssObjectInput), input } + }); + } + + public virtual async Task BulkDeleteAsync(BulkDeleteOssObjectInput input) + { + await RequestAsync(nameof(BulkDeleteAsync), new ClientProxyRequestTypeValue + { + { typeof(BulkDeleteOssObjectInput), input } + }); + } + + public virtual async Task DeleteAsync(GetOssObjectInput input) + { + await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue + { + { typeof(GetOssObjectInput), input } + }); + } + + public virtual async Task GetAsync(GetOssObjectInput input) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(GetOssObjectInput), input } + }); + } + + public virtual async Task GetContentAsync(GetOssObjectInput input) + { + return await RequestAsync(nameof(GetContentAsync), new ClientProxyRequestTypeValue + { + { typeof(GetOssObjectInput), input } + }); + } +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssObjectClientProxy.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssObjectClientProxy.cs new file mode 100644 index 000000000..8f562ff69 --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/OssObjectClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of OssObjectClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.OssManagement; + +public partial class OssObjectClientProxy +{ +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PrivateFilesClientProxy.Generated.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PrivateFilesClientProxy.Generated.cs new file mode 100644 index 000000000..8a211c7f2 --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PrivateFilesClientProxy.Generated.cs @@ -0,0 +1,73 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.OssManagement; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Content; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.OssManagement; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IFileAppService), typeof(PrivateFilesClientProxy))] +public partial class PrivateFilesClientProxy : ClientProxyBase, IFileAppService +{ + public virtual async Task UploadAsync(UploadFileInput input) + { + return await RequestAsync(nameof(UploadAsync), new ClientProxyRequestTypeValue + { + { typeof(UploadFileInput), input } + }); + } + + public virtual async Task UploadChunkAsync(UploadFileChunkInput input) + { + await RequestAsync(nameof(UploadChunkAsync), new ClientProxyRequestTypeValue + { + { typeof(UploadFileChunkInput), input } + }); + } + + public virtual async Task> GetListAsync(GetFilesInput input) + { + return await RequestAsync>(nameof(GetListAsync), new ClientProxyRequestTypeValue + { + { typeof(GetFilesInput), input } + }); + } + + public virtual async Task GetAsync(GetPublicFileInput input) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(GetPublicFileInput), input } + }); + } + + public virtual async Task DeleteAsync(GetPublicFileInput input) + { + await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue + { + { typeof(GetPublicFileInput), input } + }); + } + + public virtual async Task> GetShareListAsync() + { + return await RequestAsync>(nameof(GetShareListAsync)); + } + + public virtual async Task ShareAsync(FileShareInput input) + { + return await RequestAsync(nameof(ShareAsync), new ClientProxyRequestTypeValue + { + { typeof(FileShareInput), input } + }); + } +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PrivateFilesClientProxy.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PrivateFilesClientProxy.cs new file mode 100644 index 000000000..f0773a784 --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PrivateFilesClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of PrivateFilesClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.OssManagement; + +public partial class PrivateFilesClientProxy +{ +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PublicFilesClientProxy.Generated.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PublicFilesClientProxy.Generated.cs new file mode 100644 index 000000000..7298889ae --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PublicFilesClientProxy.Generated.cs @@ -0,0 +1,60 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.OssManagement; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Content; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.OssManagement; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IFileAppService), typeof(PublicFilesClientProxy))] +public partial class PublicFilesClientProxy : ClientProxyBase, IFileAppService +{ + public virtual async Task UploadAsync(UploadFileInput input) + { + return await RequestAsync(nameof(UploadAsync), new ClientProxyRequestTypeValue + { + { typeof(UploadFileInput), input } + }); + } + + public virtual async Task UploadChunkAsync(UploadFileChunkInput input) + { + await RequestAsync(nameof(UploadChunkAsync), new ClientProxyRequestTypeValue + { + { typeof(UploadFileChunkInput), input } + }); + } + + public virtual async Task> GetListAsync(GetFilesInput input) + { + return await RequestAsync>(nameof(GetListAsync), new ClientProxyRequestTypeValue + { + { typeof(GetFilesInput), input } + }); + } + + public virtual async Task GetAsync(GetPublicFileInput input) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(GetPublicFileInput), input } + }); + } + + public virtual async Task DeleteAsync(GetPublicFileInput input) + { + await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue + { + { typeof(GetPublicFileInput), input } + }); + } +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PublicFilesClientProxy.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PublicFilesClientProxy.cs new file mode 100644 index 000000000..8fdb18270 --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PublicFilesClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of PublicFilesClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.OssManagement; + +public partial class PublicFilesClientProxy +{ +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/StaticFilesClientProxy.Generated.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/StaticFilesClientProxy.Generated.cs new file mode 100644 index 000000000..aa8491289 --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/StaticFilesClientProxy.Generated.cs @@ -0,0 +1,28 @@ +// This file is automatically generated by ABP framework to use MVC Controllers from CSharp +using LINGYUN.Abp.OssManagement; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Content; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Http.Client.ClientProxying; +using Volo.Abp.Http.Modeling; + +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.OssManagement; + +[Dependency(ReplaceServices = true)] +[ExposeServices(typeof(IStaticFilesAppService), typeof(StaticFilesClientProxy))] +public partial class StaticFilesClientProxy : ClientProxyBase, IStaticFilesAppService +{ + public virtual async Task GetAsync(GetStaticFileInput input) + { + return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue + { + { typeof(GetStaticFileInput), input } + }); + } +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/StaticFilesClientProxy.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/StaticFilesClientProxy.cs new file mode 100644 index 000000000..bb107d230 --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/StaticFilesClientProxy.cs @@ -0,0 +1,7 @@ +// This file is part of StaticFilesClientProxy, you can customize it here +// ReSharper disable once CheckNamespace +namespace LINGYUN.Abp.OssManagement; + +public partial class StaticFilesClientProxy +{ +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/oss-management-generate-proxy.json b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/oss-management-generate-proxy.json new file mode 100644 index 000000000..6349bd2e6 --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/oss-management-generate-proxy.json @@ -0,0 +1,2834 @@ +{ + "modules": { + "oss-management": { + "rootPath": "oss-management", + "remoteServiceName": "AbpOssManagement", + "controllers": { + "LINGYUN.Abp.OssManagement.Integration.OssObjectIntegrationController": { + "controllerName": "OssObjectIntegration", + "controllerGroupName": "OssObjectIntegration", + "isRemoteService": true, + "isIntegrationService": true, + "apiVersion": null, + "type": "LINGYUN.Abp.OssManagement.Integration.OssObjectIntegrationController", + "interfaces": [ + { + "type": "LINGYUN.Abp.OssManagement.Integration.IOssObjectIntegrationService", + "name": "IOssObjectIntegrationService", + "methods": [ + { + "name": "CreateAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.CreateOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.CreateOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.CreateOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "ExistsAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.Integration.GetOssObjectExistsResult", + "typeSimple": "LINGYUN.Abp.OssManagement.Integration.GetOssObjectExistsResult" + } + }, + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent" + } + } + ] + } + ], + "actions": { + "CreateAsyncByInput": { + "uniqueName": "CreateAsyncByInput", + "name": "CreateAsync", + "httpMethod": "POST", + "url": "integration-api/oss-management/objects", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.CreateOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.CreateOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.CreateOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "FileName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Overwrite", + "jsonName": null, + "type": "System.Boolean", + "typeSimple": "boolean", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "File", + "jsonName": null, + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "FormFile", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ExpirationTime", + "jsonName": null, + "type": "System.TimeSpan?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.Integration.IOssObjectIntegrationService" + }, + "DeleteAsyncByInput": { + "uniqueName": "DeleteAsyncByInput", + "name": "DeleteAsync", + "httpMethod": "DELETE", + "url": "integration-api/oss-management/objects", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Object", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MD5", + "jsonName": null, + "type": "System.Boolean", + "typeSimple": "boolean", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.Integration.IOssObjectIntegrationService" + }, + "ExistsAsyncByInput": { + "uniqueName": "ExistsAsyncByInput", + "name": "ExistsAsync", + "httpMethod": "GET", + "url": "integration-api/oss-management/objects/exists", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Object", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MD5", + "jsonName": null, + "type": "System.Boolean", + "typeSimple": "boolean", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.Integration.GetOssObjectExistsResult", + "typeSimple": "LINGYUN.Abp.OssManagement.Integration.GetOssObjectExistsResult" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.Integration.IOssObjectIntegrationService" + }, + "GetAsyncByInput": { + "uniqueName": "GetAsyncByInput", + "name": "GetAsync", + "httpMethod": "GET", + "url": "integration-api/oss-management/objects/download", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Object", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MD5", + "jsonName": null, + "type": "System.Boolean", + "typeSimple": "boolean", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.Integration.IOssObjectIntegrationService" + } + } + }, + "LINGYUN.Abp.OssManagement.OssContainerController": { + "controllerName": "OssContainer", + "controllerGroupName": "OssContainer", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.OssManagement.OssContainerController", + "interfaces": [ + { + "type": "LINGYUN.Abp.OssManagement.IOssContainerAppService", + "name": "IOssContainerAppService", + "methods": [ + { + "name": "CreateAsync", + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssContainerDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssContainerDto" + } + }, + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssContainerDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssContainerDto" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssContainersInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssContainersInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssContainersInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssContainersResultDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssContainersResultDto" + } + }, + { + "name": "GetObjectListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectsInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectsInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectsInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectsResultDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectsResultDto" + } + } + ] + } + ], + "actions": { + "CreateAsyncByName": { + "uniqueName": "CreateAsyncByName", + "name": "CreateAsync", + "httpMethod": "POST", + "url": "api/oss-management/containes/{name}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "name", + "name": "name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssContainerDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssContainerDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IOssContainerAppService" + }, + "DeleteAsyncByName": { + "uniqueName": "DeleteAsyncByName", + "name": "DeleteAsync", + "httpMethod": "DELETE", + "url": "api/oss-management/containes/{name}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "name", + "name": "name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IOssContainerAppService" + }, + "GetAsyncByName": { + "uniqueName": "GetAsyncByName", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/oss-management/containes/{name}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "name", + "typeAsString": "System.String, System.Private.CoreLib", + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "name", + "name": "name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssContainerDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssContainerDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IOssContainerAppService" + }, + "GetListAsyncByInput": { + "uniqueName": "GetListAsyncByInput", + "name": "GetListAsync", + "httpMethod": "GET", + "url": "api/oss-management/containes", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssContainersInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssContainersInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssContainersInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Prefix", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Marker", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Sorting", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "SkipCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MaxResultCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssContainersResultDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssContainersResultDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IOssContainerAppService" + }, + "GetObjectListAsyncByInput": { + "uniqueName": "GetObjectListAsyncByInput", + "name": "GetObjectListAsync", + "httpMethod": "GET", + "url": "api/oss-management/containes/objects", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectsInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectsInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectsInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Prefix", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Delimiter", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Marker", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "EncodingType", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MD5", + "jsonName": null, + "type": "System.Boolean", + "typeSimple": "boolean", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Sorting", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "SkipCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MaxResultCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectsResultDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectsResultDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IOssContainerAppService" + } + } + }, + "LINGYUN.Abp.OssManagement.OssObjectController": { + "controllerName": "OssObject", + "controllerGroupName": "OssObject", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.OssManagement.OssObjectController", + "interfaces": [ + { + "type": "LINGYUN.Abp.OssManagement.IOssObjectAppService", + "name": "IOssObjectAppService", + "methods": [ + { + "name": "CreateAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.CreateOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.CreateOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.CreateOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + } + }, + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + } + }, + { + "name": "GetContentAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "BulkDeleteAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.BulkDeleteOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.BulkDeleteOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.BulkDeleteOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + } + ] + } + ], + "actions": { + "CreateAsyncByInput": { + "uniqueName": "CreateAsyncByInput", + "name": "CreateAsync", + "httpMethod": "POST", + "url": "api/oss-management/objects", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.CreateOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.CreateOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.CreateOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "FileName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Overwrite", + "jsonName": null, + "type": "System.Boolean", + "typeSimple": "boolean", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "File", + "jsonName": null, + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "FormFile", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ExpirationTime", + "jsonName": null, + "type": "System.TimeSpan?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IOssObjectAppService" + }, + "UploadAsyncByInput": { + "uniqueName": "UploadAsyncByInput", + "name": "UploadAsync", + "httpMethod": "POST", + "url": "api/oss-management/objects/upload", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileChunkInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ChunkSize", + "jsonName": null, + "type": "System.Int64", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "CurrentChunkSize", + "jsonName": null, + "type": "System.Int64", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ChunkNumber", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "TotalChunks", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "File", + "jsonName": null, + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "FormFile", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "TotalSize", + "jsonName": null, + "type": "System.Int64", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "FileName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.OssManagement.OssObjectController" + }, + "BulkDeleteAsyncByInput": { + "uniqueName": "BulkDeleteAsyncByInput", + "name": "BulkDeleteAsync", + "httpMethod": "POST", + "url": "api/oss-management/objects/bulk-delete", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.BulkDeleteOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.BulkDeleteOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.BulkDeleteOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.OssManagement.BulkDeleteOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.BulkDeleteOssObjectInput", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IOssObjectAppService" + }, + "DeleteAsyncByInput": { + "uniqueName": "DeleteAsyncByInput", + "name": "DeleteAsync", + "httpMethod": "DELETE", + "url": "api/oss-management/objects", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Object", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MD5", + "jsonName": null, + "type": "System.Boolean", + "typeSimple": "boolean", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IOssObjectAppService" + }, + "GetAsyncByInput": { + "uniqueName": "GetAsyncByInput", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/oss-management/objects", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Object", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MD5", + "jsonName": null, + "type": "System.Boolean", + "typeSimple": "boolean", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IOssObjectAppService" + }, + "GetContentAsyncByInput": { + "uniqueName": "GetContentAsyncByInput", + "name": "GetContentAsync", + "httpMethod": "GET", + "url": "api/oss-management/objects/download", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Object", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MD5", + "jsonName": null, + "type": "System.Boolean", + "typeSimple": "boolean", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IOssObjectAppService" + } + } + }, + "LINGYUN.Abp.OssManagement.PrivateFilesController": { + "controllerName": "PrivateFiles", + "controllerGroupName": "PrivateFiles", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.OssManagement.PrivateFilesController", + "interfaces": [ + { + "type": "LINGYUN.Abp.OssManagement.IPrivateFileAppService", + "name": "IPrivateFileAppService", + "methods": [ + { + "name": "ShareAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.FileShareInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.FileShareInput", + "typeSimple": "LINGYUN.Abp.OssManagement.FileShareInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.FileShareDto", + "typeSimple": "LINGYUN.Abp.OssManagement.FileShareDto" + } + }, + { + "name": "GetShareListAsync", + "parametersOnMethod": [], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + } + }, + { + "name": "UploadAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + } + }, + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent" + } + }, + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetFilesInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetFilesInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetFilesInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + } + }, + { + "name": "UploadChunkAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileChunkInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + } + ] + }, + { + "type": "LINGYUN.Abp.OssManagement.IFileAppService", + "name": "IFileAppService", + "methods": [ + { + "name": "UploadAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + } + }, + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent" + } + }, + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetFilesInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetFilesInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetFilesInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + } + }, + { + "name": "UploadChunkAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileChunkInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + } + ] + } + ], + "actions": { + "UploadAsyncByInput": { + "uniqueName": "UploadAsyncByInput", + "name": "UploadAsync", + "httpMethod": "POST", + "url": "api/files/private", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Object", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Overwrite", + "jsonName": null, + "type": "System.Boolean", + "typeSimple": "boolean", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "File", + "jsonName": null, + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "FormFile", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IFileAppService" + }, + "UploadChunkAsyncByInput": { + "uniqueName": "UploadChunkAsyncByInput", + "name": "UploadChunkAsync", + "httpMethod": "POST", + "url": "api/files/private/upload", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileChunkInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ChunkSize", + "jsonName": null, + "type": "System.Int64", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "CurrentChunkSize", + "jsonName": null, + "type": "System.Int64", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ChunkNumber", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "TotalChunks", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "File", + "jsonName": null, + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "FormFile", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "TotalSize", + "jsonName": null, + "type": "System.Int64", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "FileName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IFileAppService" + }, + "GetListAsyncByInput": { + "uniqueName": "GetListAsyncByInput", + "name": "GetListAsync", + "httpMethod": "GET", + "url": "api/files/private/search", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetFilesInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetFilesInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetFilesInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Filter", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MaxResultCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IFileAppService" + }, + "GetAsyncByInput": { + "uniqueName": "GetAsyncByInput", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/files/private/{Name}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IFileAppService" + }, + "DeleteAsyncByInput": { + "uniqueName": "DeleteAsyncByInput", + "name": "DeleteAsync", + "httpMethod": "DELETE", + "url": "api/files/private", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Process", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "TenantId", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IFileAppService" + }, + "GetShareListAsync": { + "uniqueName": "GetShareListAsync", + "name": "GetShareListAsync", + "httpMethod": "GET", + "url": "api/files/private/share", + "supportedVersions": [], + "parametersOnMethod": [], + "parameters": [], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IPrivateFileAppService" + }, + "ShareAsyncByInput": { + "uniqueName": "ShareAsyncByInput", + "name": "ShareAsync", + "httpMethod": "POST", + "url": "api/files/private/share", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.FileShareInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.FileShareInput", + "typeSimple": "LINGYUN.Abp.OssManagement.FileShareInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "input", + "jsonName": null, + "type": "LINGYUN.Abp.OssManagement.FileShareInput", + "typeSimple": "LINGYUN.Abp.OssManagement.FileShareInput", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Body", + "descriptorName": "" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.FileShareDto", + "typeSimple": "LINGYUN.Abp.OssManagement.FileShareDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IPrivateFileAppService" + } + } + }, + "LINGYUN.Abp.OssManagement.PublicFilesController": { + "controllerName": "PublicFiles", + "controllerGroupName": "PublicFiles", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.OssManagement.PublicFilesController", + "interfaces": [ + { + "type": "LINGYUN.Abp.OssManagement.IPublicFileAppService", + "name": "IPublicFileAppService", + "methods": [ + { + "name": "UploadAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + } + }, + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent" + } + }, + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetFilesInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetFilesInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetFilesInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + } + }, + { + "name": "UploadChunkAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileChunkInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + } + ] + }, + { + "type": "LINGYUN.Abp.OssManagement.IFileAppService", + "name": "IFileAppService", + "methods": [ + { + "name": "UploadAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + } + }, + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent" + } + }, + { + "name": "GetListAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetFilesInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetFilesInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetFilesInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + } + }, + { + "name": "UploadChunkAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileChunkInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + }, + { + "name": "DeleteAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + } + } + ] + } + ], + "actions": { + "UploadAsyncByInput": { + "uniqueName": "UploadAsyncByInput", + "name": "UploadAsync", + "httpMethod": "POST", + "url": "api/files/public", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Object", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Overwrite", + "jsonName": null, + "type": "System.Boolean", + "typeSimple": "boolean", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "File", + "jsonName": null, + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "FormFile", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IFileAppService" + }, + "UploadChunkAsyncByInput": { + "uniqueName": "UploadChunkAsyncByInput", + "name": "UploadChunkAsync", + "httpMethod": "POST", + "url": "api/files/public/upload", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.UploadFileChunkInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "typeSimple": "LINGYUN.Abp.OssManagement.UploadFileChunkInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ChunkSize", + "jsonName": null, + "type": "System.Int64", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "CurrentChunkSize", + "jsonName": null, + "type": "System.Int64", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ChunkNumber", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "TotalChunks", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "File", + "jsonName": null, + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "FormFile", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "TotalSize", + "jsonName": null, + "type": "System.Int64", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "FileName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IFileAppService" + }, + "GetListAsyncByInput": { + "uniqueName": "GetListAsyncByInput", + "name": "GetListAsync", + "httpMethod": "GET", + "url": "api/files/public/search", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetFilesInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetFilesInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetFilesInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Filter", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "MaxResultCount", + "jsonName": null, + "type": "System.Int32", + "typeSimple": "number", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Application.Dtos.ListResultDto", + "typeSimple": "Volo.Abp.Application.Dtos.ListResultDto" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IFileAppService" + }, + "GetAsyncByInput": { + "uniqueName": "GetAsyncByInput", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/files/public/{Name}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IFileAppService" + }, + "DeleteAsyncByInput": { + "uniqueName": "DeleteAsyncByInput", + "name": "DeleteAsync", + "httpMethod": "DELETE", + "url": "api/files/public", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Process", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "TenantId", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "ModelBinding", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "System.Void", + "typeSimple": "System.Void" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IFileAppService" + } + } + }, + "LINGYUN.Abp.OssManagement.StaticFilesController": { + "controllerName": "StaticFiles", + "controllerGroupName": "StaticFiles", + "isRemoteService": true, + "isIntegrationService": false, + "apiVersion": null, + "type": "LINGYUN.Abp.OssManagement.StaticFilesController", + "interfaces": [ + { + "type": "LINGYUN.Abp.OssManagement.IStaticFilesAppService", + "name": "IStaticFilesAppService", + "methods": [ + { + "name": "GetAsync", + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetStaticFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetStaticFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetStaticFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "returnValue": { + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent" + } + } + ] + } + ], + "actions": { + "UploadAsyncByInput": { + "uniqueName": "UploadAsyncByInput", + "name": "UploadAsync", + "httpMethod": "POST", + "url": "api/files/static", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.CreateOssObjectInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.CreateOssObjectInput", + "typeSimple": "LINGYUN.Abp.OssManagement.CreateOssObjectInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Path", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "FileName", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Overwrite", + "jsonName": null, + "type": "System.Boolean", + "typeSimple": "boolean", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "File", + "jsonName": null, + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "FormFile", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "ExpirationTime", + "jsonName": null, + "type": "System.TimeSpan?", + "typeSimple": "string?", + "isOptional": false, + "defaultValue": null, + "constraintTypes": null, + "bindingSourceId": "Form", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "LINGYUN.Abp.OssManagement.OssObjectDto", + "typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto" + }, + "allowAnonymous": false, + "implementFrom": "LINGYUN.Abp.OssManagement.StaticFilesController" + }, + "GetAsyncByInput": { + "uniqueName": "GetAsyncByInput", + "name": "GetAsync", + "httpMethod": "GET", + "url": "api/files/static/{Bucket}/{Name}", + "supportedVersions": [], + "parametersOnMethod": [ + { + "name": "input", + "typeAsString": "LINGYUN.Abp.OssManagement.GetStaticFileInput, LINGYUN.Abp.OssManagement.Application.Contracts", + "type": "LINGYUN.Abp.OssManagement.GetStaticFileInput", + "typeSimple": "LINGYUN.Abp.OssManagement.GetStaticFileInput", + "isOptional": false, + "defaultValue": null + } + ], + "parameters": [ + { + "nameOnMethod": "input", + "name": "Name", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "input" + }, + { + "nameOnMethod": "input", + "name": "Bucket", + "jsonName": null, + "type": "System.String", + "typeSimple": "string", + "isOptional": false, + "defaultValue": null, + "constraintTypes": [], + "bindingSourceId": "Path", + "descriptorName": "input" + } + ], + "returnValue": { + "type": "Volo.Abp.Content.IRemoteStreamContent", + "typeSimple": "Volo.Abp.Content.IRemoteStreamContent" + }, + "allowAnonymous": null, + "implementFrom": "LINGYUN.Abp.OssManagement.IStaticFilesAppService" + } + } + } + } + } + }, + "types": {} +} \ No newline at end of file diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/LINGYUN.Abp.OssManagement.HttpApi.Client.csproj b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/LINGYUN.Abp.OssManagement.HttpApi.Client.csproj index 010b44479..8eb7c4251 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/LINGYUN.Abp.OssManagement.HttpApi.Client.csproj +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/LINGYUN.Abp.OssManagement.HttpApi.Client.csproj @@ -13,6 +13,14 @@ + + + + + + + + diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/LINGYUN/Abp/OssManagement/AbpOssManagementHttpApiClientModule.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/LINGYUN/Abp/OssManagement/AbpOssManagementHttpApiClientModule.cs index 10fda813c..fb83ae959 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/LINGYUN/Abp/OssManagement/AbpOssManagementHttpApiClientModule.cs +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/LINGYUN/Abp/OssManagement/AbpOssManagementHttpApiClientModule.cs @@ -11,7 +11,7 @@ public class AbpOssManagementHttpApiClientModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { - context.Services.AddHttpClientProxies( + context.Services.AddStaticHttpClientProxies( typeof(AbpOssManagementApplicationContractsModule).Assembly, OssManagementRemoteServiceConsts.RemoteServiceName ); diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN.Abp.OssManagement.HttpApi.csproj b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN.Abp.OssManagement.HttpApi.csproj index df3f1aad0..84222acf2 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN.Abp.OssManagement.HttpApi.csproj +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN.Abp.OssManagement.HttpApi.csproj @@ -1,4 +1,4 @@ - + diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationController.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationController.cs new file mode 100644 index 000000000..38371114c --- /dev/null +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN/Abp/OssManagement/Integration/OssObjectIntegrationController.cs @@ -0,0 +1,47 @@ +using Asp.Versioning; +using Microsoft.AspNetCore.Mvc; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.AspNetCore.Mvc; +using Volo.Abp.Content; + +namespace LINGYUN.Abp.OssManagement.Integration; + +[Area(OssManagementRemoteServiceConsts.ModuleName)] +[ControllerName("OssObjectIntegration")] +[RemoteService(Name = OssManagementRemoteServiceConsts.RemoteServiceName)] +[Route($"integration-api/{OssManagementRemoteServiceConsts.ModuleName}/objects")] +public class OssObjectIntegrationController : AbpControllerBase, IOssObjectIntegrationService +{ + private readonly IOssObjectIntegrationService _service; + public OssObjectIntegrationController(IOssObjectIntegrationService service) + { + _service = service; + } + + [HttpPost] + public virtual Task CreateAsync([FromForm] CreateOssObjectInput input) + { + return _service.CreateAsync(input); + } + + [HttpDelete] + public virtual Task DeleteAsync(GetOssObjectInput input) + { + return _service.DeleteAsync(input); + } + + [HttpGet] + [Route("exists")] + public virtual Task ExistsAsync(GetOssObjectInput input) + { + return _service.ExistsAsync(input); + } + + [HttpGet] + [Route("download")] + public virtual Task GetAsync(GetOssObjectInput input) + { + return _service.GetAsync(input); + } +} diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN/Abp/OssManagement/PrivateFilesController.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN/Abp/OssManagement/PrivateFilesController.cs index ee1b98f90..18dd39183 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN/Abp/OssManagement/PrivateFilesController.cs +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN/Abp/OssManagement/PrivateFilesController.cs @@ -34,9 +34,9 @@ public class PrivateFilesController : AbpControllerBase, IPrivateFileAppService [HttpPost] [Route("upload")] - public async virtual Task UploadAsync([FromForm] UploadFileChunkInput input) + public async virtual Task UploadChunkAsync([FromForm] UploadFileChunkInput input) { - await _service.UploadAsync(input); + await _service.UploadChunkAsync(input); } [HttpGet] diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN/Abp/OssManagement/PublicFilesController.cs b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN/Abp/OssManagement/PublicFilesController.cs index 8e9b6eedc..fe61a59bb 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN/Abp/OssManagement/PublicFilesController.cs +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi/LINGYUN/Abp/OssManagement/PublicFilesController.cs @@ -32,9 +32,9 @@ public class PublicFilesController : AbpControllerBase, IPublicFileAppService [HttpPost] [Route("upload")] - public async virtual Task UploadAsync([FromForm] UploadFileChunkInput input) + public async virtual Task UploadChunkAsync([FromForm] UploadFileChunkInput input) { - await _publicFileAppService.UploadAsync(input); + await _publicFileAppService.UploadChunkAsync(input); } [HttpGet]