Browse Source

feat: 调整上传和下载文件为PUT请求

WangJunZzz-patch-1
Hanpaopao 1 year ago
parent
commit
75423a317c
  1. 4
      aspnet-core/modules/FileManagement/src/Lion.AbpPro.FileManagement.HttpApi/Files/FileController.cs

4
aspnet-core/modules/FileManagement/src/Lion.AbpPro.FileManagement.HttpApi/Files/FileController.cs

@ -20,7 +20,7 @@ public class FileController : AbpController, IFileAppService
return await _fileAppService.PageAsync(input);
}
[HttpPost("Upload")]
[HttpPut("Upload")]
[SwaggerOperation(summary: "上传文件", Tags = new[] { "Files" })]
public async Task UploadAsync(List<IFormFile> files)
{
@ -36,7 +36,7 @@ public class FileController : AbpController, IFileAppService
}
[HttpPost("Download")]
[HttpPut("Download")]
[SwaggerOperation(summary: "下载文件", Tags = new[] { "Files" })]
public Task<RemoteStreamContent> DownloadAsync(DownloadFileObjectInput input)
{

Loading…
Cancel
Save