mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 21:17:08 +00:00
(improvement)(Headless)(Chat) Change View to DataSet (#782)
* (improvement)(Headless)(Chat) Change view to dataSet --------- Co-authored-by: jolunoluo <jolunoluo@tencent.com>
This commit is contained in:
@@ -29,7 +29,7 @@ public class LoadRemoveService {
|
||||
if (Objects.isNull(nature)) {
|
||||
return false;
|
||||
}
|
||||
Long modelId = getViewId(nature);
|
||||
Long modelId = getDataSetId(nature);
|
||||
if (Objects.nonNull(modelId)) {
|
||||
return !detectModelIds.contains(modelId);
|
||||
}
|
||||
@@ -47,7 +47,7 @@ public class LoadRemoveService {
|
||||
return resultList;
|
||||
}
|
||||
|
||||
public Long getViewId(String nature) {
|
||||
public Long getDataSetId(String nature) {
|
||||
try {
|
||||
String[] split = nature.split(DictWordType.NATURE_SPILT);
|
||||
if (split.length <= 1) {
|
||||
|
||||
@@ -7,7 +7,7 @@ public enum TypeEnums {
|
||||
TAG,
|
||||
DOMAIN,
|
||||
ENTITY,
|
||||
VIEW,
|
||||
DATASET,
|
||||
MODEL,
|
||||
UNKNOWN;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user