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.
15 lines
607 B
15 lines
607 B
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
|
|
}
|