mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-21 23:43:15 +00:00
削除メソッド実装
This commit is contained in:
parent
f77b7c7089
commit
8f7594c628
|
@ -28,6 +28,9 @@ public interface LacertaLibrary {
|
|||
// Create Folder
|
||||
CompletableFuture<String> createFolder(String parentId, String name);
|
||||
|
||||
// delete Folder
|
||||
CompletableFuture<Void> deleteFolder(String folderId);
|
||||
|
||||
// Get Public Path
|
||||
CompletableFuture<PublicPath> getPublicPath(String itemId, ListItemType itemType);
|
||||
|
||||
|
|
|
@ -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
|
||||
public CompletableFuture<PublicPath> getPublicPath(String itemId, ListItemType itemType) {
|
||||
return CompletableFuture.supplyAsync(() -> {
|
||||
|
|
Loading…
Reference in New Issue
Block a user