package repositories import ( "context" "git.aiterp.net/rpdata/api/models" ) type ChapterRepository interface { Find(ctx context.Context, id string) (*models.Chapter, error) List(ctx context.Context, filter models.ChapterFilter) ([]*models.Chapter, error) Insert(ctx context.Context, chapter models.Chapter) (*models.Chapter, error) Update(ctx context.Context, chapter models.Chapter, update models.ChapterUpdate) (*models.Chapter, error) Move(ctx context.Context, chapter models.Chapter, from, to models.Story) (*models.Chapter, error) Delete(ctx context.Context, chapter models.Chapter) error }