fix 上传路由更改
This commit is contained in:
@@ -3,7 +3,6 @@ using Dlhis.Common.Response;
|
||||
using Dlhis.Common.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Org.BouncyCastle.Asn1.Ocsp;
|
||||
|
||||
namespace Dlhis.Common.Controllers;
|
||||
|
||||
@@ -26,7 +25,7 @@ public class ApkFileController : ControllerBase
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("minlo")]
|
||||
[HttpPost("minio")]
|
||||
public async Task<ApkFileResponse> FormSingleFileUpload([FromForm] ApkRequest request)
|
||||
{
|
||||
return await _apkFIileService.FormSingleFileUpload(request);
|
||||
@@ -37,7 +36,7 @@ public class ApkFileController : ControllerBase
|
||||
/// </summary>
|
||||
/// <param name="fileName"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("url")]
|
||||
[HttpGet("miniourl")]
|
||||
public async Task<string> RequestDownloadFile(string fileName)
|
||||
{
|
||||
return await _apkFIileService.RequestDownloadFile(fileName);
|
||||
@@ -49,7 +48,7 @@ public class ApkFileController : ControllerBase
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("local")]
|
||||
[HttpPost("uploadlocal")]
|
||||
[RequestSizeLimit(100_000_0000)]
|
||||
|
||||
public async Task<ApkFileFormLocalResponse> FormLocalFileUpload([FromForm] ApkRequest request)
|
||||
@@ -61,7 +60,7 @@ public class ApkFileController : ControllerBase
|
||||
/// </summary>
|
||||
/// <param name="fileName"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("latestFile")]
|
||||
[HttpGet("lateFile")]
|
||||
public async Task<ApkFileFormLocalResponse> LatestFile(string fileName)
|
||||
{
|
||||
return await _apkFIileService.LatestFile(fileName);
|
||||
@@ -72,7 +71,7 @@ public class ApkFileController : ControllerBase
|
||||
/// </summary>
|
||||
/// <param name="fileName"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("local")]
|
||||
[HttpGet("downlocal")]
|
||||
public IActionResult FormLocalDownloadFile(string fileName)
|
||||
{
|
||||
return _apkFIileService.FormLocalDownloadFile(fileName);
|
||||
|
||||
Reference in New Issue
Block a user