| | |
| | | return classesService.dissolution(id); |
| | | } |
| | | |
| | | @PutMapping("/recover/{id}") |
| | | @ApiOperation(value = "恢复正常", notes = "恢复正常") |
| | | @PreAuthorize("hasAuthority('classes:recover')") |
| | | public Result recover(@PathVariable("id") Integer id) { |
| | | return classesService.recover(id); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("hasAuthority('classes:detail')") |
| | |
| | | public Result list() { |
| | | return classesService.all(); |
| | | } |
| | | |
| | | @GetMapping("/my") |
| | | @PreAuthorize("hasAuthority('classes:my')") |
| | | @ApiOperation(value = "我的班级(老师的班级)", notes = "我的班级(老师的班级)") |
| | | public Result myClassList() { |
| | | return classesService.myClassList(); |
| | | } |
| | | |
| | | @GetMapping("/listByMeetId/{meetId}") |
| | | @ApiOperation(value = "根据会议ID获取班级列表", notes = "根据会议ID获取班级列表") |
| | | public Result listByMeetId(@PathVariable("meetId") Integer meetId) { |
| | | List<Integer> classIds = classesService.listByMeetId(meetId); |
| | | return Result.ok(classIds); |
| | | } |
| | | |
| | | } |