From 77880838186b7c39220320e789ff8b6474e2617f Mon Sep 17 00:00:00 2001 From: Michael Li Date: Tue, 19 Sep 2023 16:13:32 +0800 Subject: [PATCH] sqlc: add miss methoe in slonik --- internal/dao/slonik/comments.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/internal/dao/slonik/comments.go b/internal/dao/slonik/comments.go index 5ce59815..f1bb7415 100644 --- a/internal/dao/slonik/comments.go +++ b/internal/dao/slonik/comments.go @@ -25,10 +25,9 @@ type commentManageSrv struct { *pgxSrv } -func (s *commentSrv) GetComments(conditions *ms.ConditionsT, offset, limit int) ([]*ms.Comment, error) { +func (s *commentSrv) GetComments(tweetId int64, style cs.StyleCommentType, limit int, offset int) ([]*ms.Comment, int64, error) { // TODO - debug.NotImplemented() - return nil, nil + return nil, 0, cs.ErrNotImplemented } func (s *commentSrv) GetCommentByID(id int64) (*ms.Comment, error) { @@ -43,12 +42,6 @@ func (s *commentSrv) GetCommentReplyByID(id int64) (*ms.CommentReply, error) { return nil, nil } -func (s *commentSrv) GetCommentCount(conditions *ms.ConditionsT) (int64, error) { - // TODO - debug.NotImplemented() - return 0, nil -} - func (s *commentSrv) GetCommentContentsByIDs(ids []int64) ([]*ms.CommentContent, error) { // TODO debug.NotImplemented()