[improvement][Headless] Simplify the QueryService interface, optimize Query permissions, and add integration testing. (#687)

This commit is contained in:
lexluo09
2024-01-24 17:33:12 +08:00
committed by GitHub
parent 48fb01f6bc
commit 922201c181
29 changed files with 529 additions and 629 deletions

View File

@@ -17,6 +17,8 @@ import org.apache.commons.codec.digest.DigestUtils;
@Slf4j
public abstract class SemanticQueryReq {
protected boolean needAuth = true;
protected Set<Long> modelIds;
protected List<Param> params = new ArrayList<>();
@@ -45,4 +47,11 @@ public abstract class SemanticQueryReq {
return modelIds;
}
public boolean isNeedAuth() {
return needAuth;
}
public void setNeedAuth(boolean needAuth) {
this.needAuth = needAuth;
}
}