提交 ce64c408 authored 作者: 马晨俊's avatar 马晨俊

mcj:更新git上传接口

上级 20e74425
......@@ -378,11 +378,7 @@ public class InspectController {
}
@PostMapping("/uploads")
private ResponseEntity uploads(@RequestParam(value = "file") MultipartFile multfile,String gitAddress){
if(gitAddress!=null){
String gitPath = GitLabUtil.downLoadProject(gitAddress);
return ResponseEntity.ok(gitPath);
}
private ResponseEntity uploads(@RequestParam(value = "file") MultipartFile multfile){
try {
File file = FileUtil.saveToLocal(multfile);
String name = file.getName();
......@@ -393,4 +389,9 @@ public class InspectController {
return ResponseEntity.ok("上传失败");
}
}
@PostMapping("/gitdownload")
private ResponseEntity gitDownloads(String gitAddress){
String gitPath = GitLabUtil.downLoadProject(gitAddress);
return ResponseEntity.ok(gitPath);
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论