refactor: 接口插件递归加载数据

This commit is contained in:
fit2-zhao 2023-09-18 10:37:32 +08:00
parent f69216902c
commit cd108b14be
1 changed files with 6 additions and 1 deletions

View File

@ -44,8 +44,13 @@ public abstract class TestElementDTO implements Serializable {
/**
* 预加载数据
*/
public void preload() throws Exception {
public void preload(List<TestElementDTO> children, BaseConfigDTO config) throws Exception {
PluginLogUtils.info("TestElementDTO preload");
if (children != null && !children.isEmpty()) {
for (TestElementDTO el : children) {
el.preload(el.children, config);
}
}
}
/**