|
@@ -11,6 +11,7 @@ import seecoder.devcloud.common.exceptions.ServiceException;
|
|
|
import seecoder.devcloud.web.model.vo.Response;
|
|
import seecoder.devcloud.web.model.vo.Response;
|
|
|
import seecoder.devcloud.web.model.vo.pipeline.DeploymentInfoVO;
|
|
import seecoder.devcloud.web.model.vo.pipeline.DeploymentInfoVO;
|
|
|
import seecoder.devcloud.web.service.pipeline.DeploymentService;
|
|
import seecoder.devcloud.web.service.pipeline.DeploymentService;
|
|
|
|
|
+import seecoder.devcloud.web.service.user.UserService;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
@@ -47,7 +48,7 @@ public class DeploymentController {
|
|
|
@PostMapping
|
|
@PostMapping
|
|
|
public Response deploy(@RequestParam("projectId")Integer projectId,
|
|
public Response deploy(@RequestParam("projectId")Integer projectId,
|
|
|
@RequestParam("pipelineId")Integer pipelineId) throws ServiceException {
|
|
@RequestParam("pipelineId")Integer pipelineId) throws ServiceException {
|
|
|
- deploymentService.deploy(projectId,pipelineId);
|
|
|
|
|
|
|
+ deploymentService.deploy(projectId,pipelineId, UserService.loginUser().getId());
|
|
|
return Response.buildSuccess();
|
|
return Response.buildSuccess();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -59,7 +60,7 @@ public class DeploymentController {
|
|
|
@DeleteMapping
|
|
@DeleteMapping
|
|
|
public Response delete(@RequestParam("projectId")Integer projectId,
|
|
public Response delete(@RequestParam("projectId")Integer projectId,
|
|
|
@RequestParam("pipelineId")Integer pipelineId) throws ServiceException {
|
|
@RequestParam("pipelineId")Integer pipelineId) throws ServiceException {
|
|
|
- deploymentService.deploy(projectId,pipelineId);
|
|
|
|
|
|
|
+ deploymentService.delete(projectId,pipelineId);
|
|
|
return Response.buildSuccess();
|
|
return Response.buildSuccess();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|