Skip to content

Commit

Permalink
#2379 add param metadata query
Browse files Browse the repository at this point in the history
  • Loading branch information
gavin2lee committed Jun 20, 2023
1 parent 4643bd0 commit 677249e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

import com.webank.wecube.platform.core.dto.plugin.CommonResponseDto;
import com.webank.wecube.platform.core.dto.plugin.CoreObjectMetaDto;
import com.webank.wecube.platform.core.dto.plugin.ParamMetadataQueryDto;
import com.webank.wecube.platform.core.dto.plugin.PluginConfigDto;
import com.webank.wecube.platform.core.dto.plugin.PluginConfigInterfaceParameterDto;
import com.webank.wecube.platform.core.dto.plugin.PluginConfigRoleRequestDto;
import com.webank.wecube.platform.core.dto.plugin.TargetEntityFilterRuleDto;
import com.webank.wecube.platform.core.service.plugin.PluginConfigMgmtService;
Expand Down Expand Up @@ -165,5 +167,13 @@ public CommonResponseDto deletePluginConfigRoleBinding(@PathVariable("plugin-con
pluginConfigMgmtService.deletePluginConfigRoleBinding(pluginConfigId, pluginConfigRoleRequestDto);
return CommonResponseDto.okay();
}


@PostMapping("/plugins/configs/interfaces/param/metadata/query")
public CommonResponseDto queryPluginParamMetadata(
@RequestBody ParamMetadataQueryDto paramMetadataQueryDto) {
PluginConfigInterfaceParameterDto result = pluginConfigMgmtService.queryPluginParamMetadata(paramMetadataQueryDto);
return CommonResponseDto.okayWithData(result);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.webank.wecube.platform.core.dto.plugin;

public class ParamMetadataQueryDto {

private String serviceId;
private String paramName;
public String getServiceId() {
return serviceId;
}
public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}
public String getParamName() {
return paramName;
}
public void setParamName(String paramName) {
this.paramName = paramName;
}



}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.webank.wecube.platform.core.commons.WecubeCoreException;
import com.webank.wecube.platform.core.dto.plugin.CoreObjectMetaDto;
import com.webank.wecube.platform.core.dto.plugin.CoreObjectPropertyMetaDto;
import com.webank.wecube.platform.core.dto.plugin.ParamMetadataQueryDto;
import com.webank.wecube.platform.core.dto.plugin.PluginConfigDto;
import com.webank.wecube.platform.core.dto.plugin.PluginConfigInterfaceDto;
import com.webank.wecube.platform.core.dto.plugin.PluginConfigInterfaceParameterDto;
Expand Down Expand Up @@ -75,6 +76,16 @@ public class PluginConfigMgmtService extends AbstractPluginMgmtService {

@Autowired
private PluginParamObjectMetaStorage pluginParamObjectMetaStorage;

/**
*
* @param paramMetadataQueryDto
* @return
*/
public PluginConfigInterfaceParameterDto queryPluginParamMetadata(ParamMetadataQueryDto paramMetadataQueryDto) {
//TODO
return null;
}

/**
*
Expand Down

0 comments on commit 677249e

Please sign in to comment.