mirror of
https://github.com/dataease/dataease.git
synced 2026-05-24 06:18:10 +08:00
feat(组织管理中心): 新增血缘关系分析
This commit is contained in:
@@ -60,6 +60,10 @@ public interface DatasetTreeApi {
|
||||
@PostMapping("move")
|
||||
DatasetNodeDTO move(@RequestBody DatasetGroupInfoDTO dto) throws Exception;
|
||||
|
||||
@DePermit({"#p0+':manage'"})
|
||||
@PostMapping("perDelete/{id}")
|
||||
boolean perDelete(@PathVariable("id") Long id);
|
||||
|
||||
@Operation(summary = "删除数据集")
|
||||
@DePermit({"#p0+':manage'"})
|
||||
@PostMapping("delete/{id}")
|
||||
|
||||
@@ -66,6 +66,10 @@ public interface DatasourceApi {
|
||||
@GetMapping("/validate/{datasourceId}")
|
||||
DatasourceDTO validate(@PathVariable("datasourceId") Long datasourceId) throws DEException;
|
||||
|
||||
@DePermit({"#p0+':manage'"})
|
||||
@PostMapping("/perDelete/{datasourceId}")
|
||||
boolean perDelete(@PathVariable("datasourceId") Long datasourceId);
|
||||
|
||||
@DePermit({"#p0+':manage'"})
|
||||
@GetMapping("/delete/{datasourceId}")
|
||||
void delete(@PathVariable("datasourceId") Long datasourceId) throws DEException;
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package io.dataease.api.permissions.relation.api;
|
||||
|
||||
import io.dataease.exception.DEException;
|
||||
|
||||
/**
|
||||
* @Author Junjun
|
||||
*/
|
||||
public interface RelationApi {
|
||||
Long getDsResource(Long id);
|
||||
|
||||
Long getDatasetResource(Long id);
|
||||
|
||||
void checkAuth() throws DEException;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package io.dataease.api.permissions.relation.dto;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author Junjun
|
||||
*/
|
||||
@Data
|
||||
public class RelationDTO {
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long id;
|
||||
private String name;
|
||||
private String auths;
|
||||
private String type;
|
||||
private String creator;
|
||||
private Long updateTime;
|
||||
private List<RelationDTO> subRelation;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package io.dataease.api.permissions.relation.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author Junjun
|
||||
*/
|
||||
@Data
|
||||
public class RelationListDTO implements Serializable {
|
||||
private Long dsId;
|
||||
private String dsName;
|
||||
private String dsCreator;
|
||||
private Long dsUpdateTime;
|
||||
|
||||
private Long datasetId;
|
||||
private String datasetName;
|
||||
private String datasetCreator;
|
||||
private Long datasetUpdateTime;
|
||||
|
||||
private Long dashboardId;
|
||||
private String dashboardName;
|
||||
private String dashboardCreator;
|
||||
private Long dashboardUpdateTime;
|
||||
|
||||
private Long dvId;
|
||||
private String dvName;
|
||||
private String dvCreator;
|
||||
private Long dvUpdateTime;
|
||||
}
|
||||
Reference in New Issue
Block a user