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