diff --git a/pkg/graph/post.go b/pkg/graph/post.go index f08d75b..c228ee3 100644 --- a/pkg/graph/post.go +++ b/pkg/graph/post.go @@ -7,7 +7,11 @@ import ( ) type Post interface { + + // CreatePost will always create a new node, it does not check if the node with the corresponding post_id and rating exists. CreatePost(ctx context.Context, anthrovePost *models.AnthrovePost) error + + // DeletePost will always delete a node, it only needs the anthrovePost.PostID filled out. DeletePost(ctx context.Context, anthrovePost *models.AnthrovePost) error // CheckPostNodeExistsBySourceID checks if a post node exists in the OtterSpace graph by its source ID.