|
@@ -35,7 +35,7 @@ public class CodeReviewController {
|
|
|
@GetMapping("/{projectId}")
|
|
@GetMapping("/{projectId}")
|
|
|
@ApiOperation(value = "获取一个项目的所有code_review", httpMethod = "GET")
|
|
@ApiOperation(value = "获取一个项目的所有code_review", httpMethod = "GET")
|
|
|
@ApiImplicitParam(value = "projectId", dataType = "int", paramType = "query")
|
|
@ApiImplicitParam(value = "projectId", dataType = "int", paramType = "query")
|
|
|
- public Response<CodeReviewSortedList> list(@PathVariable("projectId") Integer projectId){
|
|
|
|
|
|
|
+ public Response<CodeReviewSortedList> list(@PathVariable Integer projectId){
|
|
|
return Response.buildSuccess(branchReviewService.list(projectId));
|
|
return Response.buildSuccess(branchReviewService.list(projectId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -50,14 +50,14 @@ public class CodeReviewController {
|
|
|
@GetMapping("/branch_review/{codeReviewId}")
|
|
@GetMapping("/branch_review/{codeReviewId}")
|
|
|
@ApiOperation(value = "获取某个code_review的详细信息", httpMethod = "GET")
|
|
@ApiOperation(value = "获取某个code_review的详细信息", httpMethod = "GET")
|
|
|
@ApiImplicitParam(value = "codeReviewId", dataType = "int", paramType = "query")
|
|
@ApiImplicitParam(value = "codeReviewId", dataType = "int", paramType = "query")
|
|
|
- public Response<CodeReviewVO> getBranchReviewById(@PathVariable("codeReviewId") Integer codeReviewId){
|
|
|
|
|
|
|
+ public Response<CodeReviewVO> getBranchReviewById(@PathVariable Integer codeReviewId){
|
|
|
return Response.buildSuccess(branchReviewService.getById(codeReviewId));
|
|
return Response.buildSuccess(branchReviewService.getById(codeReviewId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PutMapping("/close/{codeReviewId}")
|
|
@PutMapping("/close/{codeReviewId}")
|
|
|
@ApiOperation(value = "关闭某个code_review", httpMethod = "PUT")
|
|
@ApiOperation(value = "关闭某个code_review", httpMethod = "PUT")
|
|
|
@ApiImplicitParam(value = "codeReviewId", dataType = "int", paramType = "query")
|
|
@ApiImplicitParam(value = "codeReviewId", dataType = "int", paramType = "query")
|
|
|
- public Response close(@PathVariable("codeReviewId") Integer codeReviewId){
|
|
|
|
|
|
|
+ public Response close(@PathVariable Integer codeReviewId){
|
|
|
branchReviewService.close(codeReviewId);
|
|
branchReviewService.close(codeReviewId);
|
|
|
return Response.buildSuccess();
|
|
return Response.buildSuccess();
|
|
|
}
|
|
}
|
|
@@ -65,7 +65,7 @@ public class CodeReviewController {
|
|
|
@PutMapping("/reopen/{codeReviewId}")
|
|
@PutMapping("/reopen/{codeReviewId}")
|
|
|
@ApiOperation(value = "重开某个code_review", httpMethod = "PUT")
|
|
@ApiOperation(value = "重开某个code_review", httpMethod = "PUT")
|
|
|
@ApiImplicitParam(value = "codeReviewId", dataType = "int", paramType = "query")
|
|
@ApiImplicitParam(value = "codeReviewId", dataType = "int", paramType = "query")
|
|
|
- public Response reopen(@PathVariable("codeReviewId") Integer codeReviewId){
|
|
|
|
|
|
|
+ public Response reopen(@PathVariable Integer codeReviewId){
|
|
|
branchReviewService.reopen(codeReviewId);
|
|
branchReviewService.reopen(codeReviewId);
|
|
|
return Response.buildSuccess();
|
|
return Response.buildSuccess();
|
|
|
}
|
|
}
|
|
@@ -73,7 +73,7 @@ public class CodeReviewController {
|
|
|
@PutMapping("/merge/{codeReviewId}")
|
|
@PutMapping("/merge/{codeReviewId}")
|
|
|
@ApiOperation(value = "合并某个code_review", httpMethod = "PUT")
|
|
@ApiOperation(value = "合并某个code_review", httpMethod = "PUT")
|
|
|
@ApiImplicitParam(value = "codeReviewId", dataType = "int", paramType = "query")
|
|
@ApiImplicitParam(value = "codeReviewId", dataType = "int", paramType = "query")
|
|
|
- public Response merge(@PathVariable("codeReviewId") Integer codeReviewId) throws ServiceException {
|
|
|
|
|
|
|
+ public Response merge(@PathVariable Integer codeReviewId) throws ServiceException {
|
|
|
branchReviewService.merge(codeReviewId);
|
|
branchReviewService.merge(codeReviewId);
|
|
|
return Response.buildSuccess();
|
|
return Response.buildSuccess();
|
|
|
}
|
|
}
|
|
@@ -81,7 +81,7 @@ public class CodeReviewController {
|
|
|
@ApiOperation(value = "获取指定项目的所有branch信息", httpMethod = "GET")
|
|
@ApiOperation(value = "获取指定项目的所有branch信息", httpMethod = "GET")
|
|
|
@GetMapping("/branches/{projectId}")
|
|
@GetMapping("/branches/{projectId}")
|
|
|
@ApiImplicitParam(name = "projectId", dataType = "int", paramType = "query")
|
|
@ApiImplicitParam(name = "projectId", dataType = "int", paramType = "query")
|
|
|
- public Response getProjectBranches(@PathVariable("projectId") Integer projectId) throws ServiceException {
|
|
|
|
|
|
|
+ public Response getProjectBranches(@PathVariable Integer projectId) throws ServiceException {
|
|
|
return Response.buildSuccess(branchReviewService.getBranches(projectId));
|
|
return Response.buildSuccess(branchReviewService.getBranches(projectId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -119,7 +119,7 @@ public class CodeReviewController {
|
|
|
@GetMapping("/file_review/{fileReviewId}")
|
|
@GetMapping("/file_review/{fileReviewId}")
|
|
|
@ApiOperation(value = "获取一个文件评审任务详细信息", httpMethod = "GET")
|
|
@ApiOperation(value = "获取一个文件评审任务详细信息", httpMethod = "GET")
|
|
|
@ApiImplicitParam(value = "fileReviewId", dataType = "int", paramType = "query")
|
|
@ApiImplicitParam(value = "fileReviewId", dataType = "int", paramType = "query")
|
|
|
- public Response getByFileReviewId(@PathVariable("fileReviewId") int fileReviewId){
|
|
|
|
|
|
|
+ public Response getByFileReviewId(@PathVariable int fileReviewId){
|
|
|
return Response.buildSuccess(fileReviewService.getById(fileReviewId));
|
|
return Response.buildSuccess(fileReviewService.getById(fileReviewId));
|
|
|
}
|
|
}
|
|
|
|
|
|