Tag系インタフェース作成

This commit is contained in:
ろむねこ 2024-01-25 15:52:06 +09:00
parent 05915a2f4e
commit 512ac0b775
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -9,6 +9,7 @@ import one.nem.lacerta.model.ListItemType;
import one.nem.lacerta.model.LibraryItemPage; import one.nem.lacerta.model.LibraryItemPage;
import one.nem.lacerta.model.PublicPath; import one.nem.lacerta.model.PublicPath;
import one.nem.lacerta.model.document.DocumentDetail; import one.nem.lacerta.model.document.DocumentDetail;
import one.nem.lacerta.model.document.tag.DocumentTag;
public interface LacertaLibrary { public interface LacertaLibrary {
@ -29,4 +30,17 @@ public interface LacertaLibrary {
// Get Public Path // Get Public Path
CompletableFuture<PublicPath> getPublicPath(String itemId, ListItemType itemType); CompletableFuture<PublicPath> getPublicPath(String itemId, ListItemType itemType);
// Tag
CompletableFuture<ArrayList<DocumentTag>> getTagList();
CompletableFuture<Void> createTag(DocumentTag tag);
CompletableFuture<Void> updateTag(DocumentTag tag);
CompletableFuture<Void> deleteTag(String tagId);
CompletableFuture<Void> addTagToDocument(String documentId, String tagId);
CompletableFuture<Void> removeTagFromDocument(String documentId, String tagId);
} }