| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 会议表 前端控制器 |
| | |
| | | |
| | | private final MeetService meetService; |
| | | |
| | | @GetMapping("/page") |
| | | @PostMapping("/page") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | public Result page(MeetQuery query) { |
| | | public Result page(@RequestBody MeetQuery query) { |
| | | return meetService.studentPage(query); |
| | | } |
| | | |
| | | @GetMapping("/classes") |
| | | @ApiOperation(value = "获取学生的班级", notes = "获取学生的班级") |
| | | public Result getStudentClasses() { |
| | | return meetService.getStudentClasses(); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @ApiOperation(value = "学生上课", notes = "学生上课") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | return meetService.detail(id); |
| | | } |