Skip to content

Commit ad23b8d

Browse files
committed
fix(oss): fix the oss client proxy
- Remove the `IFileAppService` interface - Regenerate `generate-proxy.json`
1 parent 8b8d146 commit ad23b8d

7 files changed

Lines changed: 34 additions & 209 deletions

File tree

aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/IFileAppService.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/IPrivateFileAppService.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
using System.Threading.Tasks;
22
using Volo.Abp.Application.Dtos;
3+
using Volo.Abp.Application.Services;
4+
using Volo.Abp.Content;
35

46
namespace LINGYUN.Abp.OssManagement;
57

6-
public interface IPrivateFileAppService : IFileAppService
8+
public interface IPrivateFileAppService : IApplicationService
79
{
10+
Task<OssObjectDto> UploadAsync(UploadFileInput input);
11+
12+
Task<IRemoteStreamContent> GetAsync(GetPublicFileInput input);
13+
14+
Task<ListResultDto<OssObjectDto>> GetListAsync(GetFilesInput input);
15+
16+
Task UploadChunkAsync(UploadFileChunkInput input);
17+
18+
Task DeleteAsync(GetPublicFileInput input);
19+
820
Task<FileShareDto> ShareAsync(FileShareInput input);
921

1022
Task<ListResultDto<MyFileShareDto>> GetShareListAsync();
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
1-
namespace LINGYUN.Abp.OssManagement;
1+
using System.Threading.Tasks;
2+
using Volo.Abp.Application.Dtos;
3+
using Volo.Abp.Application.Services;
4+
using Volo.Abp.Content;
25

3-
public interface IPublicFileAppService : IFileAppService
6+
namespace LINGYUN.Abp.OssManagement;
7+
8+
public interface IPublicFileAppService : IApplicationService
49
{
10+
Task<OssObjectDto> UploadAsync(UploadFileInput input);
11+
12+
Task<IRemoteStreamContent> GetAsync(GetPublicFileInput input);
13+
14+
Task<ListResultDto<OssObjectDto>> GetListAsync(GetFilesInput input);
15+
16+
Task UploadChunkAsync(UploadFileChunkInput input);
17+
18+
Task DeleteAsync(GetPublicFileInput input);
519
}

aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application/LINGYUN/Abp/OssManagement/FileAppServiceBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace LINGYUN.Abp.OssManagement;
1616

17-
public abstract class FileAppServiceBase : OssManagementApplicationServiceBase, IFileAppService
17+
public abstract class FileAppServiceBase : OssManagementApplicationServiceBase
1818
{
1919
protected IFileUploader FileUploader { get; }
2020
protected IFileValidater FileValidater { get; }

aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PrivateFilesClientProxy.Generated.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
namespace LINGYUN.Abp.OssManagement;
1616

1717
[Dependency(ReplaceServices = true)]
18-
[ExposeServices(typeof(IFileAppService), typeof(PrivateFilesClientProxy))]
19-
public partial class PrivateFilesClientProxy : ClientProxyBase<IFileAppService>, IFileAppService
18+
[ExposeServices(typeof(IPrivateFileAppService), typeof(PrivateFilesClientProxy))]
19+
public partial class PrivateFilesClientProxy : ClientProxyBase<IPrivateFileAppService>, IPrivateFileAppService
2020
{
2121
public virtual async Task<OssObjectDto> UploadAsync(UploadFileInput input)
2222
{

aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/LINGYUN/Abp/OssManagement/PublicFilesClientProxy.Generated.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
namespace LINGYUN.Abp.OssManagement;
1616

1717
[Dependency(ReplaceServices = true)]
18-
[ExposeServices(typeof(IFileAppService), typeof(PublicFilesClientProxy))]
19-
public partial class PublicFilesClientProxy : ClientProxyBase<IFileAppService>, IFileAppService
18+
[ExposeServices(typeof(IPublicFileAppService), typeof(PublicFilesClientProxy))]
19+
public partial class PublicFilesClientProxy : ClientProxyBase<IPublicFileAppService>, IPublicFileAppService
2020
{
2121
public virtual async Task<OssObjectDto> UploadAsync(UploadFileInput input)
2222
{

aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.HttpApi.Client/ClientProxies/oss-management-generate-proxy.json

Lines changed: 0 additions & 182 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,97 +1694,6 @@
16941694
}
16951695
}
16961696
]
1697-
},
1698-
{
1699-
"type": "LINGYUN.Abp.OssManagement.IFileAppService",
1700-
"name": "IFileAppService",
1701-
"methods": [
1702-
{
1703-
"name": "UploadAsync",
1704-
"parametersOnMethod": [
1705-
{
1706-
"name": "input",
1707-
"typeAsString": "LINGYUN.Abp.OssManagement.UploadFileInput, LINGYUN.Abp.OssManagement.Application.Contracts",
1708-
"type": "LINGYUN.Abp.OssManagement.UploadFileInput",
1709-
"typeSimple": "LINGYUN.Abp.OssManagement.UploadFileInput",
1710-
"isOptional": false,
1711-
"defaultValue": null
1712-
}
1713-
],
1714-
"returnValue": {
1715-
"type": "LINGYUN.Abp.OssManagement.OssObjectDto",
1716-
"typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto"
1717-
}
1718-
},
1719-
{
1720-
"name": "GetAsync",
1721-
"parametersOnMethod": [
1722-
{
1723-
"name": "input",
1724-
"typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts",
1725-
"type": "LINGYUN.Abp.OssManagement.GetPublicFileInput",
1726-
"typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput",
1727-
"isOptional": false,
1728-
"defaultValue": null
1729-
}
1730-
],
1731-
"returnValue": {
1732-
"type": "Volo.Abp.Content.IRemoteStreamContent",
1733-
"typeSimple": "Volo.Abp.Content.IRemoteStreamContent"
1734-
}
1735-
},
1736-
{
1737-
"name": "GetListAsync",
1738-
"parametersOnMethod": [
1739-
{
1740-
"name": "input",
1741-
"typeAsString": "LINGYUN.Abp.OssManagement.GetFilesInput, LINGYUN.Abp.OssManagement.Application.Contracts",
1742-
"type": "LINGYUN.Abp.OssManagement.GetFilesInput",
1743-
"typeSimple": "LINGYUN.Abp.OssManagement.GetFilesInput",
1744-
"isOptional": false,
1745-
"defaultValue": null
1746-
}
1747-
],
1748-
"returnValue": {
1749-
"type": "Volo.Abp.Application.Dtos.ListResultDto<LINGYUN.Abp.OssManagement.OssObjectDto>",
1750-
"typeSimple": "Volo.Abp.Application.Dtos.ListResultDto<LINGYUN.Abp.OssManagement.OssObjectDto>"
1751-
}
1752-
},
1753-
{
1754-
"name": "UploadChunkAsync",
1755-
"parametersOnMethod": [
1756-
{
1757-
"name": "input",
1758-
"typeAsString": "LINGYUN.Abp.OssManagement.UploadFileChunkInput, LINGYUN.Abp.OssManagement.Application.Contracts",
1759-
"type": "LINGYUN.Abp.OssManagement.UploadFileChunkInput",
1760-
"typeSimple": "LINGYUN.Abp.OssManagement.UploadFileChunkInput",
1761-
"isOptional": false,
1762-
"defaultValue": null
1763-
}
1764-
],
1765-
"returnValue": {
1766-
"type": "System.Void",
1767-
"typeSimple": "System.Void"
1768-
}
1769-
},
1770-
{
1771-
"name": "DeleteAsync",
1772-
"parametersOnMethod": [
1773-
{
1774-
"name": "input",
1775-
"typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts",
1776-
"type": "LINGYUN.Abp.OssManagement.GetPublicFileInput",
1777-
"typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput",
1778-
"isOptional": false,
1779-
"defaultValue": null
1780-
}
1781-
],
1782-
"returnValue": {
1783-
"type": "System.Void",
1784-
"typeSimple": "System.Void"
1785-
}
1786-
}
1787-
]
17881697
}
17891698
],
17901699
"actions": {
@@ -2317,97 +2226,6 @@
23172226
}
23182227
}
23192228
]
2320-
},
2321-
{
2322-
"type": "LINGYUN.Abp.OssManagement.IFileAppService",
2323-
"name": "IFileAppService",
2324-
"methods": [
2325-
{
2326-
"name": "UploadAsync",
2327-
"parametersOnMethod": [
2328-
{
2329-
"name": "input",
2330-
"typeAsString": "LINGYUN.Abp.OssManagement.UploadFileInput, LINGYUN.Abp.OssManagement.Application.Contracts",
2331-
"type": "LINGYUN.Abp.OssManagement.UploadFileInput",
2332-
"typeSimple": "LINGYUN.Abp.OssManagement.UploadFileInput",
2333-
"isOptional": false,
2334-
"defaultValue": null
2335-
}
2336-
],
2337-
"returnValue": {
2338-
"type": "LINGYUN.Abp.OssManagement.OssObjectDto",
2339-
"typeSimple": "LINGYUN.Abp.OssManagement.OssObjectDto"
2340-
}
2341-
},
2342-
{
2343-
"name": "GetAsync",
2344-
"parametersOnMethod": [
2345-
{
2346-
"name": "input",
2347-
"typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts",
2348-
"type": "LINGYUN.Abp.OssManagement.GetPublicFileInput",
2349-
"typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput",
2350-
"isOptional": false,
2351-
"defaultValue": null
2352-
}
2353-
],
2354-
"returnValue": {
2355-
"type": "Volo.Abp.Content.IRemoteStreamContent",
2356-
"typeSimple": "Volo.Abp.Content.IRemoteStreamContent"
2357-
}
2358-
},
2359-
{
2360-
"name": "GetListAsync",
2361-
"parametersOnMethod": [
2362-
{
2363-
"name": "input",
2364-
"typeAsString": "LINGYUN.Abp.OssManagement.GetFilesInput, LINGYUN.Abp.OssManagement.Application.Contracts",
2365-
"type": "LINGYUN.Abp.OssManagement.GetFilesInput",
2366-
"typeSimple": "LINGYUN.Abp.OssManagement.GetFilesInput",
2367-
"isOptional": false,
2368-
"defaultValue": null
2369-
}
2370-
],
2371-
"returnValue": {
2372-
"type": "Volo.Abp.Application.Dtos.ListResultDto<LINGYUN.Abp.OssManagement.OssObjectDto>",
2373-
"typeSimple": "Volo.Abp.Application.Dtos.ListResultDto<LINGYUN.Abp.OssManagement.OssObjectDto>"
2374-
}
2375-
},
2376-
{
2377-
"name": "UploadChunkAsync",
2378-
"parametersOnMethod": [
2379-
{
2380-
"name": "input",
2381-
"typeAsString": "LINGYUN.Abp.OssManagement.UploadFileChunkInput, LINGYUN.Abp.OssManagement.Application.Contracts",
2382-
"type": "LINGYUN.Abp.OssManagement.UploadFileChunkInput",
2383-
"typeSimple": "LINGYUN.Abp.OssManagement.UploadFileChunkInput",
2384-
"isOptional": false,
2385-
"defaultValue": null
2386-
}
2387-
],
2388-
"returnValue": {
2389-
"type": "System.Void",
2390-
"typeSimple": "System.Void"
2391-
}
2392-
},
2393-
{
2394-
"name": "DeleteAsync",
2395-
"parametersOnMethod": [
2396-
{
2397-
"name": "input",
2398-
"typeAsString": "LINGYUN.Abp.OssManagement.GetPublicFileInput, LINGYUN.Abp.OssManagement.Application.Contracts",
2399-
"type": "LINGYUN.Abp.OssManagement.GetPublicFileInput",
2400-
"typeSimple": "LINGYUN.Abp.OssManagement.GetPublicFileInput",
2401-
"isOptional": false,
2402-
"defaultValue": null
2403-
}
2404-
],
2405-
"returnValue": {
2406-
"type": "System.Void",
2407-
"typeSimple": "System.Void"
2408-
}
2409-
}
2410-
]
24112229
}
24122230
],
24132231
"actions": {

0 commit comments

Comments
 (0)