2024-07-19 08:03:35 +00:00
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2024-07-22 09:11:48 +00:00
|
|
|
"git.anthrove.art/Anthrove/otter-space-sdk/v2/pkg/models"
|
2024-07-19 08:03:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type TagAlias interface {
|
|
|
|
CreateTagAlias(ctx context.Context, tagAliasName models.AnthroveTagAliasName, tagID models.AnthroveTagID) error
|
|
|
|
|
|
|
|
CreateTagAliasInBatch(ctx context.Context, tagsAliases []models.TagAlias, batchSize int) error
|
|
|
|
|
|
|
|
GetAllTagAlias(ctx context.Context) ([]models.TagAlias, error)
|
|
|
|
|
|
|
|
GetAllTagAliasByTag(ctx context.Context, tagID models.AnthroveTagID) ([]models.TagAlias, error)
|
|
|
|
|
|
|
|
DeleteTagAlias(ctx context.Context, tagAliasName models.AnthroveTagAliasName) error
|
|
|
|
}
|