Files
Fishing2Server/Hotfix/Api/Controllers/UserController.cs
2026-04-01 16:40:34 +08:00

33 lines
652 B
C#

using System.Threading;
using Fantasy;
using Fantasy.Async;
using Fantasy.Network.HTTP;
using Microsoft.AspNetCore.Mvc;
namespace NBF;
/// <summary>
/// 用户api
/// </summary>
[ApiController]
[Route("api/[controller]")]
[ServiceFilter(typeof(SceneContextFilter))]
public class UserController : NBControllerBase
{
private readonly Scene _scene;
/// <summary>
/// 构造函数依赖注入
/// </summary>
/// <param name="scene"></param>
public UserController(Scene scene)
{
_scene = scene;
}
[HttpGet("test")]
public async FTask<IActionResult> SendCode()
{
return Success("test");
}
}