using Microsoft.AspNetCore.Mvc; using YD_XinWei.Api.Services.Interface; using YD_XinWei.Commons.Dto.School; namespace YD_XinWei.Api.Controllers { /// /// 学生 /// [ApiController] [ApiExplorerSettings(GroupName = "v1")] [Route("[controller]")] public class StudentController : ControllerBase { private readonly IStudentService _studentService; public StudentController(IStudentService studentService) { _studentService = studentService; } /// /// 获取班级列表 /// /// /// [HttpGet("ClassListbyTeacher")] public async Task> ClassListbyTeacher(string teacherPhoneNo) { var res = await _studentService.ClassListbyTeacher(teacherPhoneNo); return res; } /// /// 获取学生列表 /// /// /// [HttpGet("StudentListByClassId")] public async Task> StudentListByClassId(int classId) { var res = await _studentService.StudentListByClassId(classId); return res; } } }