削除メソッド実装

This commit is contained in:
ろむねこ 2024-01-29 12:31:08 +09:00
parent f77b7c7089
commit 8f7594c628
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 11 additions and 0 deletions

View File

@ -28,6 +28,9 @@ public interface LacertaLibrary {
// Create Folder // Create Folder
CompletableFuture<String> createFolder(String parentId, String name); CompletableFuture<String> createFolder(String parentId, String name);
// delete Folder
CompletableFuture<Void> deleteFolder(String folderId);
// Get Public Path // Get Public Path
CompletableFuture<PublicPath> getPublicPath(String itemId, ListItemType itemType); CompletableFuture<PublicPath> getPublicPath(String itemId, ListItemType itemType);

View File

@ -207,6 +207,14 @@ public class LacertaLibraryImpl implements LacertaLibrary {
}); });
} }
@Override
public CompletableFuture<Void> deleteFolder(String folderId) {
return CompletableFuture.supplyAsync(() -> {
database.folderDao().deleteById(folderId);
return null;
});
}
@Override @Override
public CompletableFuture<PublicPath> getPublicPath(String itemId, ListItemType itemType) { public CompletableFuture<PublicPath> getPublicPath(String itemId, ListItemType itemType) {
return CompletableFuture.supplyAsync(() -> { return CompletableFuture.supplyAsync(() -> {