Closed sunday866 closed 1 year ago
[ApiController] [Route("api/[controller]/[action]")] public class UserController : ControllerBase { private readonly ICaller _caller;
public UserController(ICaller caller) => _caller = caller; public async Task<IActionResult> HelloAsync(int userId) { var userObj = await _userCaller.HelloAsync("word"); return Ok(userObj); }
}
没有_userCaller,它应该是_caller,方便的话可以提个pr 🙏🙏
_userCaller
_caller
pr
[ApiController] [Route("api/[controller]/[action]")] public class UserController : ControllerBase { private readonly ICaller _caller;
}