|
|
@@ -3,6 +3,7 @@ package com.template.api;
|
|
|
import com.template.model.result.CommonResult;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
@@ -20,7 +21,7 @@ public interface ClassScheduleAPI {
|
|
|
@ApiOperation(value = "导出课表", notes = "导出课表", httpMethod = "GET")
|
|
|
void downloadSchedule(String stateTime, String endTime, String teacherName, HttpServletResponse response);
|
|
|
|
|
|
- @GetMapping("/uploadSchedule")
|
|
|
- @ApiOperation(value = "导入课表", notes = "导入课表", httpMethod = "GET")
|
|
|
+ @PostMapping("/uploadSchedule")
|
|
|
+ @ApiOperation(value = "导入课表", notes = "导入课表", httpMethod = "POST")
|
|
|
CommonResult uploadSchedule(@RequestParam("file") MultipartFile file);
|
|
|
}
|