33 lines
652 B
C#
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");
|
|
}
|
|
} |