feat: fix lint and new nill functions

This commit is contained in:
d3m0k1d
2026-02-18 13:30:16 +03:00
parent 81446e56f5
commit 5a375d67c7
2 changed files with 21 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package repositories
import (
"context"
"database/sql"
"gitea.d3m0k1d.ru/d3m0k1d/d3m0k1d.ru/backend/internal/logger"
"gitea.d3m0k1d.ru/d3m0k1d/d3m0k1d.ru/backend/internal/storage"
@@ -23,3 +24,19 @@ func NewCommentsRepository(db *sql.DB) CommentRepository {
func (c *commentsRepository) CreateComment(ctx context.Context, comment *storage.Comment) error {
return nil
}
func (c *commentsRepository) GetAllComments(ctx context.Context) ([]storage.Comment, error) {
return nil, nil
}
func (c *commentsRepository) GetCommentsOfPost(ctx context.Context, id int) ([]storage.Comment, error) {
return nil, nil
}
func (c *commentsRepository) DeleteComment(ctx context.Context, id int) error {
return nil
}
func (c *commentsRepository) UpdateComment(ctx context.Context, id int, comment *storage.Comment) error {
return nil
}