feat: fix lint and new nill functions
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user