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.
16 lines
627 B
16 lines
627 B
package repositories
|
|
|
|
import (
|
|
"context"
|
|
"git.aiterp.net/rpdata/api/models"
|
|
)
|
|
|
|
type StoryRepository interface {
|
|
Find(ctx context.Context, id string) (*models.Story, error)
|
|
List(ctx context.Context, filter models.StoryFilter) ([]*models.Story, error)
|
|
Insert(ctx context.Context, story models.Story) (*models.Story, error)
|
|
Update(ctx context.Context, story models.Story, update models.StoryUpdate) (*models.Story, error)
|
|
AddTag(ctx context.Context, story models.Story, tag models.Tag) error
|
|
RemoveTag(ctx context.Context, story models.Story, tag models.Tag) error
|
|
Delete(ctx context.Context, story models.Story) error
|
|
}
|