diff --git a/backend/framework/plugin/plugin-platform-sdk/src/main/java/io/metersphere/plugin/platform/spi/AbstractPlatform.java b/backend/framework/plugin/plugin-platform-sdk/src/main/java/io/metersphere/plugin/platform/spi/AbstractPlatform.java index 74f9fe70f6..0c3c532efe 100644 --- a/backend/framework/plugin/plugin-platform-sdk/src/main/java/io/metersphere/plugin/platform/spi/AbstractPlatform.java +++ b/backend/framework/plugin/plugin-platform-sdk/src/main/java/io/metersphere/plugin/platform/spi/AbstractPlatform.java @@ -17,6 +17,10 @@ public abstract class AbstractPlatform implements Platform { this.request = request; } + public T getIntegrationConfig(Class clazz) { + return getIntegrationConfig(request.getIntegrationConfig(), clazz); + } + public T getIntegrationConfig(String integrationConfig, Class clazz) { if (StringUtils.isBlank(integrationConfig)) { throw new MSPluginException("服务集成配置为空"); diff --git a/backend/framework/plugin/plugin-platform-sdk/src/main/java/io/metersphere/plugin/platform/spi/Platform.java b/backend/framework/plugin/plugin-platform-sdk/src/main/java/io/metersphere/plugin/platform/spi/Platform.java index 8660f7ccdc..b34b9b0c5d 100644 --- a/backend/framework/plugin/plugin-platform-sdk/src/main/java/io/metersphere/plugin/platform/spi/Platform.java +++ b/backend/framework/plugin/plugin-platform-sdk/src/main/java/io/metersphere/plugin/platform/spi/Platform.java @@ -25,6 +25,12 @@ public interface Platform extends ExtensionPoint { */ void validateIntegrationConfig(); + /** + * 校验用户配置 + * 个人中心-第三方平台点击时调用 + */ + void validateUserConfig(String userConfig); + /** * 校验项目配置 * 项目设置成点击校验项目 key 时调用