docs(post): added function documentation
Signed-off-by: SoXX <soxx@fenpa.ws>
This commit is contained in:
parent
6d15d99563
commit
1075d45cb7
@ -7,7 +7,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Post interface {
|
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
|
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
|
DeletePost(ctx context.Context, anthrovePost *models.AnthrovePost) error
|
||||||
|
|
||||||
// CheckPostNodeExistsBySourceID checks if a post node exists in the OtterSpace graph by its source ID.
|
// CheckPostNodeExistsBySourceID checks if a post node exists in the OtterSpace graph by its source ID.
|
||||||
|
Reference in New Issue
Block a user