|
|
@ -12,6 +12,9 @@ using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace SwaggerStudy.Controllers
|
|
|
|
namespace SwaggerStudy.Controllers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 学生操作接口
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
[ApiController]
|
|
|
|
[ApiController]
|
|
|
|
[Route("api/[controller]/[action]")]
|
|
|
|
[Route("api/[controller]/[action]")]
|
|
|
|
public class StudentController : ControllerBase
|
|
|
|
public class StudentController : ControllerBase
|
|
|
@ -53,6 +56,9 @@ namespace SwaggerStudy.Controllers
|
|
|
|
return await Task.FromResult(Ok(apiResult));
|
|
|
|
return await Task.FromResult(Ok(apiResult));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 按学号获取学生
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
[HttpGet]
|
|
|
|
[HttpGet]
|
|
|
|
public IActionResult Get(int studentId)
|
|
|
|
public IActionResult Get(int studentId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|