using Microsoft.AspNetCore.Mvc; using YD_WeChatApplet.Commons.Dto; using YD_WeChatApplet.Commons.Dto.HomeWork; using YD_WeChatApplet.Commons.Dto.School; using YD_WeChatApplet.Services; namespace YD_WeChatApplet.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() { var res = await _studentService.ClassListbyTeacher(); return res; } /// /// 获取学生列表 /// /// /// [HttpGet("StudentListByClassId")] public async Task> StudentListByClassId(StudentListByClassIdDto dto) { var res = await _studentService.StudentListByClassId(dto); return res; } } }