This commit is contained in:
d3m0k1d
2026-02-18 13:42:42 +03:00
parent 5a375d67c7
commit 3fcaefba1b
2 changed files with 32 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ type AuthRepository interface {
}
type CommentRepository interface {
CreateComment(ctx context.Context, comment *storage.Comment) error
CreateComment(ctx context.Context, comment *storage.CommentCreate) error
GetAllComments(ctx context.Context) ([]storage.Comment, error)
GetCommentsOfPost(ctx context.Context, id int) ([]storage.Comment, error)
DeleteComment(ctx context.Context, id int) error