ClassScheduleAPI.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. package com.template.api;
  2. import com.template.model.dto.ClassScheduleDto;
  3. import com.template.model.result.CommonResult;
  4. import io.swagger.annotations.ApiOperation;
  5. import org.springframework.web.bind.annotation.*;
  6. import org.springframework.web.multipart.MultipartFile;
  7. import javax.servlet.http.HttpServletResponse;
  8. import java.util.List;
  9. @RequestMapping("/auto/class-schedule")
  10. public interface ClassScheduleAPI {
  11. @GetMapping("/schedule")
  12. @ApiOperation(value = "创建课表", notes = "创建课表", httpMethod = "GET")
  13. CommonResult schedule(String stateTime,String endTime,String teacherName,String jsgh);
  14. @GetMapping("/downloadSchedule")
  15. @ApiOperation(value = "导出课表", notes = "导出课表", httpMethod = "GET")
  16. void downloadSchedule(String stateTime, String endTime, String teacherName, HttpServletResponse response);
  17. @PostMapping("/uploadSchedule")
  18. @ApiOperation(value = "导入课表", notes = "导入课表", httpMethod = "POST")
  19. CommonResult uploadSchedule(@RequestParam("file") MultipartFile file);
  20. @PostMapping("/deleteSchedule")
  21. @ApiOperation(value = "删除课表", notes = "删除课表", httpMethod = "POST")
  22. CommonResult deleteSchedule(@RequestBody List<Integer> ids);
  23. @PostMapping("/insertSchedule")
  24. @ApiOperation(value = "删除课表", notes = "删除课表", httpMethod = "POST")
  25. CommonResult insertSchedule(@RequestBody ClassScheduleDto ids);
  26. }