refactor: 基类微调,去除父引用
This commit is contained in:
parent
f09edacc9a
commit
0f0f284059
|
@ -41,9 +41,6 @@ public abstract class TestElementDTO implements Serializable {
|
||||||
// 子组件
|
// 子组件
|
||||||
private LinkedList<TestElementDTO> children;
|
private LinkedList<TestElementDTO> children;
|
||||||
|
|
||||||
// 父类
|
|
||||||
private TestElementDTO parent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 自组件重新这个方法
|
* 自组件重新这个方法
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -73,12 +73,11 @@ public class MinioRepository implements FileRepository {
|
||||||
return listObjects(MinioConfig.BUCKET, getPath(request));
|
return listObjects(MinioConfig.BUCKET, getPath(request));
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean removeObject(String bucketName, String objectName) throws Exception {
|
private void removeObject(String bucketName, String objectName) throws Exception {
|
||||||
client.removeObject(RemoveObjectArgs.builder()
|
client.removeObject(RemoveObjectArgs.builder()
|
||||||
.bucket(bucketName) // 存储桶
|
.bucket(bucketName) // 存储桶
|
||||||
.object(objectName) // 文件名
|
.object(objectName) // 文件名
|
||||||
.build());
|
.build());
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeObjects(String bucketName, String objectName) throws Exception {
|
public void removeObjects(String bucketName, String objectName) throws Exception {
|
||||||
|
|
|
@ -20,10 +20,4 @@ public class ProjectServiceInvoker {
|
||||||
service.deleteResources(projectId);
|
service.deleteResources(projectId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void invokeReportServices(String projectId) {
|
|
||||||
for (CleanupProjectResourceService service : cleanupProjectResourceServices) {
|
|
||||||
service.cleanReportResources(projectId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue