refactor: 基类微调,去除父引用

This commit is contained in:
fit2-zhao 2023-09-08 13:50:06 +08:00 committed by fit2-zhao
parent f09edacc9a
commit 0f0f284059
3 changed files with 1 additions and 11 deletions

View File

@ -41,9 +41,6 @@ public abstract class TestElementDTO implements Serializable {
// 子组件
private LinkedList<TestElementDTO> children;
// 父类
private TestElementDTO parent;
/**
* 自组件重新这个方法
*/

View File

@ -73,12 +73,11 @@ public class MinioRepository implements FileRepository {
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()
.bucket(bucketName) // 存储桶
.object(objectName) // 文件名
.build());
return true;
}
public void removeObjects(String bucketName, String objectName) throws Exception {

View File

@ -20,10 +20,4 @@ public class ProjectServiceInvoker {
service.deleteResources(projectId);
}
}
public void invokeReportServices(String projectId) {
for (CleanupProjectResourceService service : cleanupProjectResourceServices) {
service.cleanReportResources(projectId);
}
}
}