package com.ycl.jxkg.controller.student;
|
|
import com.ycl.jxkg.base.Result;
|
import com.ycl.jxkg.domain.form.MeetForm;
|
import com.ycl.jxkg.domain.query.MeetQuery;
|
import com.ycl.jxkg.group.Add;
|
import com.ycl.jxkg.group.Update;
|
import com.ycl.jxkg.service.MeetService;
|
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;
|
|
/**
|
* 会议表 前端控制器
|
*
|
* @author flq
|
* @since 2024-06-17
|
*/
|
@Validated
|
@RequiredArgsConstructor
|
@Api(value = "会议表", tags = "会议表管理")
|
@RestController("StudentMeetController")
|
@RequestMapping("api/student/meet")
|
public class MeetController {
|
|
private final MeetService meetService;
|
|
@PostMapping("/page")
|
@ApiOperation(value = "分页", notes = "分页")
|
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 = "学生上课")
|
public Result detail(@PathVariable("id") Integer id) {
|
return meetService.detail(id);
|
}
|
|
@GetMapping("/list")
|
public Result list() {
|
return meetService.all();
|
}
|
}
|