This commit is contained in:
@@ -9,6 +9,7 @@ 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)
|
||||
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
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@ type CommentRepository interface {
|
||||
Find(ctx context.Context, id string) (*models.Comment, error)
|
||||
List(ctx context.Context, filter models.CommentFilter) ([]*models.Comment, error)
|
||||
Insert(ctx context.Context, comment models.Comment) (*models.Comment, error)
|
||||
Update(ctx context.Context, comment models.Comment, update models.CommentUpdate) (*models.Story, error)
|
||||
Update(ctx context.Context, comment models.Comment, update models.CommentUpdate) (*models.Comment, error)
|
||||
Delete(ctx context.Context, comment models.Comment) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user