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

mcj:更新git上传接口

上级 21b6711e
......@@ -116,26 +116,6 @@ public class InspectController {
return ResponseEntity.ok(inspect);
}
/**
* git下载代码进行评估
*
* @param inspectParameter 封装
* @return
*/
@PostMapping("/git")
@ApiOperation("git下载代码进行评估")
public ResponseEntity inspect1(@RequestBody InspectParameter inspectParameter) {
String path = GitLabUtil.downLoadProject(inspectParameter.getGitAddress());
inspectParameter.setId(UUIDUtil.getUUID());
inspectParameter.setSourceAddress(path);
ReportVo reportVo = new ReportVo();
reportVo.setUploadType("git下载");
reportVo.setSourceAddress(path);
reportVo.setGitAddress(inspectParameter.getGitAddress());
ReportVo inspect = inspectService.inspect(reportVo, inspectParameter);
return ResponseEntity.ok(inspect);
}
@PostMapping("/frontend")
@ApiOperation("git下载代码进行评估")
public ResponseEntity inspect(MultipartFile file) throws IOException {
......@@ -391,7 +371,7 @@ public class InspectController {
}
@PostMapping("/gitdownload")
private ResponseEntity gitDownloads(String gitAddress,String username,String password){
String gitPath = GitLabUtil.downLoadProject(gitAddress);
String gitPath = GitLabUtil.downLoadProject(gitAddress,username,password);
return ResponseEntity.ok(gitPath);
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论