mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 07:53:15 +00:00
削除メソッド実装
This commit is contained in:
parent
f77b7c7089
commit
8f7594c628
|
@ -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(() -> {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user