|
|
@@ -2,13 +2,11 @@ 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.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@RequestMapping("/auto/class-schedule")
|
|
|
public interface ClassScheduleAPI {
|
|
|
@@ -24,4 +22,8 @@ public interface ClassScheduleAPI {
|
|
|
@PostMapping("/uploadSchedule")
|
|
|
@ApiOperation(value = "导入课表", notes = "导入课表", httpMethod = "POST")
|
|
|
CommonResult uploadSchedule(@RequestParam("file") MultipartFile file);
|
|
|
+
|
|
|
+ @PostMapping("/deleteSchedule")
|
|
|
+ @ApiOperation(value = "删除课表", notes = "删除课表", httpMethod = "POST")
|
|
|
+ CommonResult deleteSchedule(@RequestBody List<Integer> ids);
|
|
|
}
|