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 }