|
@@ -1,6 +1,7 @@
|
|
|
package seecoder.devcloud.web.model.vo.pipeline;
|
|
package seecoder.devcloud.web.model.vo.pipeline;
|
|
|
|
|
|
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModel;
|
|
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
import javax.validation.constraints.Pattern;
|
|
import javax.validation.constraints.Pattern;
|
|
@@ -14,12 +15,16 @@ import javax.validation.constraints.Pattern;
|
|
|
@ApiModel("流水线创建表单信息")
|
|
@ApiModel("流水线创建表单信息")
|
|
|
public class PipelineCreateVO {
|
|
public class PipelineCreateVO {
|
|
|
|
|
|
|
|
|
|
+ @ApiModelProperty("项目id")
|
|
|
private Integer projectId;
|
|
private Integer projectId;
|
|
|
|
|
|
|
|
|
|
+ @ApiModelProperty("流水线id")
|
|
|
private Integer pipelineId;
|
|
private Integer pipelineId;
|
|
|
|
|
|
|
|
- @Pattern(regexp = "^\\w{3,20}$", message = "流水线名只能为长度为3-20且由数字、26个英文字母或者下划线组成的字符串")
|
|
|
|
|
|
|
+ @ApiModelProperty(value = "流水线名称,只能为长度为3-30且由数字、26个英文字母或者下划线组成的字符串")
|
|
|
|
|
+ @Pattern(regexp = "^\\w{3,30}$", message = "流水线名只能为长度为3-30且由数字、26个英文字母或者下划线组成的字符串")
|
|
|
private String name;
|
|
private String name;
|
|
|
|
|
|
|
|
|
|
+ @ApiModelProperty("模板名称")
|
|
|
private String templateName;
|
|
private String templateName;
|
|
|
}
|
|
}
|