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 TestElementDTO parent;
|
||||
|
||||
/**
|
||||
* 自组件重新这个方法
|
||||
*/
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -20,10 +20,4 @@ public class ProjectServiceInvoker {
|
|||
service.deleteResources(projectId);
|
||||
}
|
||||
}
|
||||
|
||||
public void invokeReportServices(String projectId) {
|
||||
for (CleanupProjectResourceService service : cleanupProjectResourceServices) {
|
||||
service.cleanReportResources(projectId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue