Bladeren bron

调整流程自定义标题名称生成规则

dzx 1 jaar geleden
bovenliggende
commit
d0723f4375

+ 8 - 0
src/main/java/com/xjrsoft/module/student/controller/StudentManagerController.java

@@ -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);
+    }
 }