19 lines
571 B
Go
19 lines
571 B
Go
package graph
|
|
|
|
import (
|
|
"context"
|
|
"git.dragse.it/anthrove/otter-space-sdk/pkg/models"
|
|
)
|
|
|
|
type Tag interface {
|
|
AddTag() error
|
|
DeleteTag() error
|
|
|
|
// AddTagWithRelationToPost adds a new tag to the OtterSpace graph and associates it with a post.
|
|
// It returns an error if the operation fails.
|
|
AddTagWithRelationToPost(ctx context.Context, anthrovePostID models.AnthrovePostID, anthroveTag *models.AnthroveTag) error
|
|
|
|
// GetAllTags returns a list of Tags that the user hs favorites through a post
|
|
GetAllTags(ctx context.Context) ([]models.TagsWithFrequency, error)
|
|
}
|