StudentController.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.ym.mec.education.controller;
  2. import com.ym.mec.education.base.PageResponse;
  3. import com.ym.mec.education.req.ClassGroupReq;
  4. import com.ym.mec.education.service.IClassGroupStudentMapperService;
  5. import io.swagger.annotations.Api;
  6. import io.swagger.annotations.ApiOperation;
  7. import lombok.extern.slf4j.Slf4j;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.web.bind.annotation.PostMapping;
  10. import org.springframework.web.bind.annotation.RequestBody;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RestController;
  13. /**
  14. * @program: mec
  15. * @description: 学员名单
  16. * @author: xw
  17. * @create: 2019-09-26 19:40
  18. */
  19. @RestController
  20. @RequestMapping("api/student")
  21. @Api(tags = "学员名单")
  22. @Slf4j
  23. public class StudentController {
  24. @Autowired
  25. private IClassGroupStudentMapperService groupStudentMapperService;
  26. @PostMapping("/list")
  27. @ApiOperation("学员名单列表")
  28. public PageResponse list(@RequestBody ClassGroupReq classGroupReq) {
  29. return groupStudentMapperService.getPage(classGroupReq);
  30. }
  31. }