GraphQL API and utilities for the rpdata project
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package services
import ( "context"
"git.aiterp.net/rpdata/api/models" "git.aiterp.net/rpdata/api/repositories" )
// TagService is a service for tag-related functions.
type TagService struct { tags repositories.TagRepository }
// FindTag finds one tag.
func (s *TagService) FindTag(ctx context.Context, source models.TagKind, id string) (*models.Tag, error) { return s.tags.Find(ctx, source, id) }
// ListTags lists tags.
func (s *TagService) ListTags(ctx context.Context, filter models.TagFilter) ([]*models.Tag, error) { return s.tags.List(ctx, filter) }
|