mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 12:09:13 +08:00
refactor(缺陷管理): 优化第三方插件用户校验接口方法
This commit is contained in:
parent
47e85281db
commit
e72c5126f2
@ -17,6 +17,10 @@ public abstract class AbstractPlatform implements Platform {
|
|||||||
this.request = request;
|
this.request = request;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public <T> T getIntegrationConfig(Class<T> clazz) {
|
||||||
|
return getIntegrationConfig(request.getIntegrationConfig(), clazz);
|
||||||
|
}
|
||||||
|
|
||||||
public <T> T getIntegrationConfig(String integrationConfig, Class<T> clazz) {
|
public <T> T getIntegrationConfig(String integrationConfig, Class<T> clazz) {
|
||||||
if (StringUtils.isBlank(integrationConfig)) {
|
if (StringUtils.isBlank(integrationConfig)) {
|
||||||
throw new MSPluginException("服务集成配置为空");
|
throw new MSPluginException("服务集成配置为空");
|
||||||
|
@ -25,6 +25,12 @@ public interface Platform extends ExtensionPoint {
|
|||||||
*/
|
*/
|
||||||
void validateIntegrationConfig();
|
void validateIntegrationConfig();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 校验用户配置
|
||||||
|
* 个人中心-第三方平台点击时调用
|
||||||
|
*/
|
||||||
|
void validateUserConfig(String userConfig);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验项目配置
|
* 校验项目配置
|
||||||
* 项目设置成点击校验项目 key 时调用
|
* 项目设置成点击校验项目 key 时调用
|
||||||
|
Loading…
Reference in New Issue
Block a user