身份验证
This commit is contained in:
33
Hotfix/Api/Controllers/UserController.cs
Normal file
33
Hotfix/Api/Controllers/UserController.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user