Finished refactor of story/chapter/comment related stuff.
the build was successful

This commit is contained in:
2019-08-25 16:10:10 +02:00
parent 8c4670580c
commit 2eed815993
22 changed files with 737 additions and 502 deletions
+2 -1
View File
@@ -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
}
+1 -1
View File
@@ -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
}