|
|
@@ -38,6 +38,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
import java.util.ArrayList;
|
|
|
@@ -162,4 +163,11 @@ public class StudentManagerController {
|
|
|
Long userId = StpUtil.getLoginIdAsLong();
|
|
|
return R.ok(studentManagerService.getStudentClass(userId));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping("/import")
|
|
|
+ @ApiOperation(value = "导入学生信息")
|
|
|
+ public RT<Boolean> importData(@RequestParam("file") MultipartFile file){
|
|
|
+ return RT.ok(true);
|
|
|
+ }
|
|
|
}
|