| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得学生") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<Demo03StudentNormalRespVO> getDemo03Student(@RequestParam("id") Long id) { |
| | | Demo03StudentDO demo03Student = demo03StudentNormalService.getDemo03Student(id); |
| | | return success(BeanUtils.toBean(demo03Student, Demo03StudentNormalRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得学生分页") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<PageResult<Demo03StudentNormalRespVO>> getDemo03StudentPage(@Valid Demo03StudentNormalPageReqVO pageReqVO) { |
| | | PageResult<Demo03StudentDO> pageResult = demo03StudentNormalService.getDemo03StudentPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, Demo03StudentNormalRespVO.class)); |
| | |
| | | @GetMapping("/demo03-course/list-by-student-id") |
| | | @Operation(summary = "获得学生课程列表") |
| | | @Parameter(name = "studentId", description = "学生编号") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<List<Demo03CourseDO>> getDemo03CourseListByStudentId(@RequestParam("studentId") Long studentId) { |
| | | return success(demo03StudentNormalService.getDemo03CourseListByStudentId(studentId)); |
| | | } |
| | |
| | | @GetMapping("/demo03-grade/get-by-student-id") |
| | | @Operation(summary = "获得学生班级") |
| | | @Parameter(name = "studentId", description = "学生编号") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo03-student:query')") |
| | | public CommonResult<Demo03GradeDO> getDemo03GradeByStudentId(@RequestParam("studentId") Long studentId) { |
| | | return success(demo03StudentNormalService.getDemo03GradeByStudentId(studentId)); |
| | | } |