diff --git a/src/main/java/neatlogic/framework/deploy/dto/app/DeployBlueGreenVo.java b/src/main/java/neatlogic/framework/deploy/dto/app/DeployBlueGreenVo.java new file mode 100644 index 0000000000000000000000000000000000000000..d02be79bd75633c76b4e96a49c3ea9ff4dfbedfa --- /dev/null +++ b/src/main/java/neatlogic/framework/deploy/dto/app/DeployBlueGreenVo.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2025 深圳极向量科技有限公司 All Rights Reserved. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package neatlogic.framework.deploy.dto.app; + +import neatlogic.framework.common.constvalue.ApiParamType; +import neatlogic.framework.common.dto.BaseEditorVo; +import neatlogic.framework.restful.annotation.EntityField; +import neatlogic.framework.util.SnowflakeUtil; + +public class DeployBlueGreenVo extends BaseEditorVo { + @EntityField(name = "id", type = ApiParamType.LONG) + private Long id; + @EntityField(name = "名称", type = ApiParamType.STRING) + private String name; + @EntityField(name = "排序", type = ApiParamType.INTEGER) + private Integer sort; + @EntityField(name = "是否激活", type = ApiParamType.INTEGER) + private Integer isActive; + + public Long getId() { + if (id == null) { + id = SnowflakeUtil.uniqueLong(); + } + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public Integer getIsActive() { + return isActive; + } + + public void setIsActive(Integer isActive) { + this.isActive = isActive; + } +} diff --git a/src/main/java/neatlogic/framework/deploy/dto/app/DeployInstanceBlueGreenVo.java b/src/main/java/neatlogic/framework/deploy/dto/app/DeployInstanceBlueGreenVo.java new file mode 100644 index 0000000000000000000000000000000000000000..fb9aa0435c7016bb8f9f49d22e5aa9cfcd93950e --- /dev/null +++ b/src/main/java/neatlogic/framework/deploy/dto/app/DeployInstanceBlueGreenVo.java @@ -0,0 +1,95 @@ +/* + * Copyright (C) 2025 深圳极向量科技有限公司 All Rights Reserved. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package neatlogic.framework.deploy.dto.app; + +import neatlogic.framework.common.constvalue.ApiParamType; +import neatlogic.framework.common.dto.BaseEditorVo; +import neatlogic.framework.restful.annotation.EntityField; + +public class DeployInstanceBlueGreenVo extends BaseEditorVo { + @EntityField(name = "应用系统id", type = ApiParamType.LONG) + private Long appSystemId; + @EntityField(name = "模块id", type = ApiParamType.LONG) + private Long appModuleId; + @EntityField(name = "环境id", type = ApiParamType.LONG) + private Long envId; + @EntityField(name = "实例id", type = ApiParamType.LONG) + private Long resourceId; + @EntityField(name = "蓝绿id", type = ApiParamType.LONG) + private Long blueGreenId; + @EntityField(name = "蓝绿名", type = ApiParamType.STRING) + private String blueGreenName; + @EntityField(name = "蓝绿排序", type = ApiParamType.STRING) + private String blueGreenSort; + + public Long getAppSystemId() { + return appSystemId; + } + + public void setAppSystemId(Long appSystemId) { + this.appSystemId = appSystemId; + } + + public Long getAppModuleId() { + return appModuleId; + } + + public void setAppModuleId(Long appModuleId) { + this.appModuleId = appModuleId; + } + + public Long getEnvId() { + return envId; + } + + public void setEnvId(Long envId) { + this.envId = envId; + } + + public Long getResourceId() { + return resourceId; + } + + public void setResourceId(Long resourceId) { + this.resourceId = resourceId; + } + + public Long getBlueGreenId() { + return blueGreenId; + } + + public void setBlueGreenId(Long blueGreenId) { + this.blueGreenId = blueGreenId; + } + + public String getBlueGreenName() { + return blueGreenName; + } + + public void setBlueGreenName(String blueGreenName) { + this.blueGreenName = blueGreenName; + } + + public String getBlueGreenSort() { + return blueGreenSort; + } + + public void setBlueGreenSort(String blueGreenSort) { + this.blueGreenSort = blueGreenSort; + } +} diff --git a/src/main/java/neatlogic/framework/deploy/dto/app/DeployJobPhaseNodeBlueGreenVo.java b/src/main/java/neatlogic/framework/deploy/dto/app/DeployJobPhaseNodeBlueGreenVo.java new file mode 100644 index 0000000000000000000000000000000000000000..bdf32d2b2952f60bd8af0d218d3d92157f2d6627 --- /dev/null +++ b/src/main/java/neatlogic/framework/deploy/dto/app/DeployJobPhaseNodeBlueGreenVo.java @@ -0,0 +1,94 @@ +/* + * Copyright (C) 2025 深圳极向量科技有限公司 All Rights Reserved. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package neatlogic.framework.deploy.dto.app; + +import neatlogic.framework.common.constvalue.ApiParamType; +import neatlogic.framework.common.dto.BaseEditorVo; +import neatlogic.framework.restful.annotation.EntityField; + +public class DeployJobPhaseNodeBlueGreenVo extends BaseEditorVo { + @EntityField(name = "作业id", type = ApiParamType.LONG) + private Long jobId; + @EntityField(name = "作业阶段id", type = ApiParamType.LONG) + private Long jobPhaseId; + @EntityField(name = "作业节点id", type = ApiParamType.LONG) + private Long jobPhaseNodeId; + @EntityField(name = "蓝绿id", type = ApiParamType.LONG) + private Long blueGreenId; + @EntityField(name = "跟新标记", type = ApiParamType.LONG) + private Long updateTag; + @EntityField(name = "蓝绿名", type = ApiParamType.STRING) + private String blueGreenName; + @EntityField(name = "蓝绿排序", type = ApiParamType.STRING) + private String blueGreenSort; + public Long getJobId() { + return jobId; + } + + public void setJobId(Long jobId) { + this.jobId = jobId; + } + + public Long getJobPhaseId() { + return jobPhaseId; + } + + public void setJobPhaseId(Long jobPhaseId) { + this.jobPhaseId = jobPhaseId; + } + + public Long getJobPhaseNodeId() { + return jobPhaseNodeId; + } + + public void setJobPhaseNodeId(Long jobPhaseNodeId) { + this.jobPhaseNodeId = jobPhaseNodeId; + } + + public Long getBlueGreenId() { + return blueGreenId; + } + + public void setBlueGreenId(Long blueGreenId) { + this.blueGreenId = blueGreenId; + } + + public Long getUpdateTag() { + return updateTag; + } + + public void setUpdateTag(Long updateTag) { + this.updateTag = updateTag; + } + + public String getBlueGreenName() { + return blueGreenName; + } + + public void setBlueGreenName(String blueGreenName) { + this.blueGreenName = blueGreenName; + } + + public String getBlueGreenSort() { + return blueGreenSort; + } + + public void setBlueGreenSort(String blueGreenSort) { + this.blueGreenSort = blueGreenSort; + } +}