diff --git a/kernel-d-scanner/scanner-api/src/main/java/cn/stylefeng/roses/kernel/scanner/api/pojo/devops/DevOpsReportProperties.java b/kernel-d-scanner/scanner-api/src/main/java/cn/stylefeng/roses/kernel/scanner/api/pojo/devops/DevOpsReportProperties.java new file mode 100644 index 000000000..45d7c57c3 --- /dev/null +++ b/kernel-d-scanner/scanner-api/src/main/java/cn/stylefeng/roses/kernel/scanner/api/pojo/devops/DevOpsReportProperties.java @@ -0,0 +1,34 @@ +package cn.stylefeng.roses.kernel.scanner.api.pojo.devops; + +import lombok.Data; + +/** + * 资源向DevOps平台汇总,需要进行的配置 + * + * @author fengshuonan + * @date 2022/1/11 14:29 + */ +@Data +public class DevOpsReportProperties { + + /** + * 当前项目在DevOps平台的唯一标识,由DevOps平台颁发 + */ + private String projectUniqueCode; + + /** + * 当前项目和DevOps平台的交互秘钥(jwt秘钥) + */ + private String projectInteractionKey; + + /** + * DevOps平台的IP + */ + private String devOpsServerHost; + + /** + * DevOps平台的端口 + */ + private String devOpsServerPort; + +} diff --git a/kernel-d-scanner/scanner-api/src/main/java/cn/stylefeng/roses/kernel/scanner/api/pojo/resource/DevOpsReportResourceParam.java b/kernel-d-scanner/scanner-api/src/main/java/cn/stylefeng/roses/kernel/scanner/api/pojo/devops/DevOpsReportResourceParam.java similarity index 91% rename from kernel-d-scanner/scanner-api/src/main/java/cn/stylefeng/roses/kernel/scanner/api/pojo/resource/DevOpsReportResourceParam.java rename to kernel-d-scanner/scanner-api/src/main/java/cn/stylefeng/roses/kernel/scanner/api/pojo/devops/DevOpsReportResourceParam.java index 8e37ebef3..a0fccd604 100644 --- a/kernel-d-scanner/scanner-api/src/main/java/cn/stylefeng/roses/kernel/scanner/api/pojo/resource/DevOpsReportResourceParam.java +++ b/kernel-d-scanner/scanner-api/src/main/java/cn/stylefeng/roses/kernel/scanner/api/pojo/devops/DevOpsReportResourceParam.java @@ -22,9 +22,10 @@ * 5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns * 6.若您的项目无法满足以上几点,可申请商业授权 */ -package cn.stylefeng.roses.kernel.scanner.api.pojo.resource; +package cn.stylefeng.roses.kernel.scanner.api.pojo.devops; import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest; +import cn.stylefeng.roses.kernel.scanner.api.pojo.resource.ResourceDefinition; import lombok.Data; import lombok.EqualsAndHashCode; @@ -46,7 +47,7 @@ public class DevOpsReportResourceParam extends BaseRequest { private String projectUniqueCode; /** - * 向DevOps平台发送资源时候的令牌 + * 向DevOps平台发送资源时候的令牌(通过jwt工具生成) */ private String interactionToken;