上传文件接口

This commit is contained in:
陈向学 2024-06-24 19:19:09 +08:00
parent c3bbc3bed5
commit 6baa6efb3a
4 changed files with 7 additions and 7 deletions

View File

@ -7,8 +7,8 @@ using System.Reflection.Emit;
namespace CompetitionAPI.Controllers.unity
{
[Route("api/[controller]")]
[ApiController]
//[Route("api/[controller]")]
//[ApiController]
public class LoginController : Controller
{
//private readonly TokenService _tokenService;

View File

@ -8,8 +8,8 @@ using Polly;
namespace CompetitionAPI.Controllers.demo
{
[Route("api/[controller]")]
[ApiController]
//[Route("api/[controller]")]
//[ApiController]
public class UploadController : Controller
{
//private readonly IWebHostEnvironment _webHostEnvironment;

View File

@ -5,8 +5,8 @@ using Microsoft.AspNetCore.Mvc;
namespace CompetitionAPI.Controllers.demo
{
[Route("api/[controller]")]
[ApiController]
//[Route("api/[controller]")]
//[ApiController]
public class UploadFileController : Controller
{
//private readonly IWebHostEnvironment _webHostEnvironment;

View File

@ -26,7 +26,7 @@ namespace CompetitionAPI.Controllers.version
/// </summary>
/// <param name="file">请求参数</param>
/// <returns></returns>
[Authorize]
//[Authorize]
[HttpPost]
public async Task<JsonResult> RuleUploadFile([FromQuery] SliceFileInfo file)
{