|
@@ -4,8 +4,8 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import org.apache.ibatis.annotations.Delete;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import seecoder.devcloud.web.model.vo.Response;
|
|
import seecoder.devcloud.web.model.vo.Response;
|
|
|
import seecoder.devcloud.web.model.vo.pipeline.PipelineConfigVO;
|
|
import seecoder.devcloud.web.model.vo.pipeline.PipelineConfigVO;
|
|
@@ -14,9 +14,6 @@ import seecoder.devcloud.web.model.vo.pipeline.PipelineHistoryVO;
|
|
|
import seecoder.devcloud.web.model.vo.pipeline.PipelineInfoVO;
|
|
import seecoder.devcloud.web.model.vo.pipeline.PipelineInfoVO;
|
|
|
import seecoder.devcloud.web.service.pipeline.PipelineService;
|
|
import seecoder.devcloud.web.service.pipeline.PipelineService;
|
|
|
|
|
|
|
|
-import javax.ws.rs.GET;
|
|
|
|
|
-import javax.ws.rs.PUT;
|
|
|
|
|
-import java.util.Collection;
|
|
|
|
|
import java.util.Collections;
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
@@ -71,7 +68,7 @@ public class PipelineController {
|
|
|
@ApiOperation(value = "依据模板创建一个流水线配置", httpMethod = "POST")
|
|
@ApiOperation(value = "依据模板创建一个流水线配置", httpMethod = "POST")
|
|
|
@ApiImplicitParam(name = "pipelineCreateVO", value = "流水线创建配置信息",dataType = "object",paramType = "body")
|
|
@ApiImplicitParam(name = "pipelineCreateVO", value = "流水线创建配置信息",dataType = "object",paramType = "body")
|
|
|
@PostMapping
|
|
@PostMapping
|
|
|
- public Response createPipelineConfig(@RequestBody PipelineCreateVO pipelineCreateVO){
|
|
|
|
|
|
|
+ public Response createPipelineConfig(@RequestBody @Validated PipelineCreateVO pipelineCreateVO){
|
|
|
pipelineService.createPipelineConfig(pipelineCreateVO);
|
|
pipelineService.createPipelineConfig(pipelineCreateVO);
|
|
|
return Response.buildSuccess();
|
|
return Response.buildSuccess();
|
|
|
}
|
|
}
|