forked from github/dataease
feat: 数据集api权限
This commit is contained in:
parent
adc1bb92c8
commit
eb67c439d5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user