mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 14:31:00 +08:00
Merge pull request #1813 from dataease/pr@dev@fix_dataset_api_auth
feat: 数据集api权限
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package io.dataease.service.dataset;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import io.dataease.auth.annotation.DeCleaner;
|
||||
import io.dataease.base.domain.*;
|
||||
import io.dataease.base.mapper.*;
|
||||
import io.dataease.base.mapper.ext.ExtDataSetGroupMapper;
|
||||
@@ -103,6 +104,7 @@ public class DataSetTableService {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(ClassloaderResponsity.class);
|
||||
|
||||
@DeCleaner(value = DePermissionType.DATASET)
|
||||
public void batchInsert(List<DataSetTableRequest> datasetTable) throws Exception {
|
||||
for (DataSetTableRequest table : datasetTable) {
|
||||
save(table);
|
||||
@@ -126,6 +128,7 @@ public class DataSetTableService {
|
||||
}
|
||||
}
|
||||
|
||||
@DeCleaner(value = DePermissionType.DATASET)
|
||||
public void saveExcel(DataSetTableRequest datasetTable) throws Exception {
|
||||
List<String> datasetIdList = new ArrayList<>();
|
||||
|
||||
@@ -233,6 +236,7 @@ public class DataSetTableService {
|
||||
}
|
||||
}
|
||||
|
||||
@DeCleaner(value = DePermissionType.DATASET)
|
||||
public DatasetTable save(DataSetTableRequest datasetTable) throws Exception {
|
||||
checkName(datasetTable);
|
||||
if (StringUtils.equalsIgnoreCase(datasetTable.getType(), "sql")) {
|
||||
@@ -1795,6 +1799,7 @@ public class DataSetTableService {
|
||||
return dataSetDetail;
|
||||
}
|
||||
|
||||
@DeCleaner(value = DePermissionType.DATASET)
|
||||
public ExcelFileData excelSaveAndParse(MultipartFile file, String tableId, Integer editType) throws Exception {
|
||||
String filename = file.getOriginalFilename();
|
||||
// parse file
|
||||
|
||||
Reference in New Issue
Block a user