feat #I6O2YE sql 外置存储支持多脚本混合调用

This commit is contained in:
gaibu
2023-03-19 21:42:35 +08:00
parent f5380d318c
commit b9542f0fbd
10 changed files with 121 additions and 62 deletions

View File

@@ -6,8 +6,7 @@ public enum ScriptTypeEnum {
QLEXPRESS("qlexpress", "qlexpress"),
JS("javascript", "js"),
PYTHON("python", "python"),
LUA("luaj", "lua")
;
LUA("luaj", "lua");
private String engineName;
private String displayName;
@@ -41,4 +40,19 @@ public enum ScriptTypeEnum {
}
return null;
}
/**
* 校验脚本类型是否合法
*
* @param scriptType 脚本类型
* @return true:合法false:不合法
*/
public static boolean checkScriptType(String scriptType) {
for (ScriptTypeEnum e : ScriptTypeEnum.values()) {
if (e.getDisplayName().equals(scriptType)) {
return true;
}
}
return false;
}
}