Files
api/repositories/chapter.go
T
2019-08-18 08:59:38 +02:00

15 lines
506 B
Go

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.Story, error)
Delete(ctx context.Context, chapter models.Chapter) error
}