mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 22:25:19 +00:00
[improvement][Headless] Simplify the QueryService interface, optimize Query permissions, and add integration testing. (#687)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user