身份验证

This commit is contained in:
Bob.Song
2026-04-01 16:40:34 +08:00
parent d5dafd2bcf
commit b628f0d04a
17 changed files with 590 additions and 101 deletions

View File

@@ -0,0 +1,33 @@
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");
}
}