mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
削除メソッド実装
This commit is contained in:
2 files changed
+11
No files matched your search
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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(() -> {
|
||||||
|
|||||||
Reference in new issue
Block a user