package com.template.api; import com.template.model.dto.ClassScheduleDto; import com.template.model.result.CommonResult; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletResponse; import java.util.List; @RequestMapping("/auto/class-schedule") public interface ClassScheduleAPI { @GetMapping("/schedule") @ApiOperation(value = "创建课表", notes = "创建课表", httpMethod = "GET") CommonResult schedule(String stateTime,String endTime,String teacherName,String jsgh); @GetMapping("/downloadSchedule") @ApiOperation(value = "导出课表", notes = "导出课表", httpMethod = "GET") void downloadSchedule(String stateTime, String endTime, String teacherName, HttpServletResponse response); @PostMapping("/uploadSchedule") @ApiOperation(value = "导入课表", notes = "导入课表", httpMethod = "POST") CommonResult uploadSchedule(@RequestParam("file") MultipartFile file); @PostMapping("/deleteSchedule") @ApiOperation(value = "删除课表", notes = "删除课表", httpMethod = "POST") CommonResult deleteSchedule(@RequestBody List ids); @PostMapping("/insertSchedule") @ApiOperation(value = "删除课表", notes = "删除课表", httpMethod = "POST") CommonResult insertSchedule(@RequestBody ClassScheduleDto ids); }