From 358bcec401618e8d6b10868e360c89bea742a4bf Mon Sep 17 00:00:00 2001 From: Michael Li Date: Thu, 27 Apr 2023 16:10:26 +0800 Subject: [PATCH] merge from x/gorm --- internal/dao/slonik/comments.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/internal/dao/slonik/comments.go b/internal/dao/slonik/comments.go index 25cff917..9b35bc3c 100644 --- a/internal/dao/slonik/comments.go +++ b/internal/dao/slonik/comments.go @@ -7,6 +7,7 @@ package slonik import ( "github.com/jackc/pgx/v5" "github.com/rocboss/paopao-ce/internal/core" + "github.com/rocboss/paopao-ce/internal/core/cs" "github.com/rocboss/paopao-ce/pkg/debug" ) @@ -59,6 +60,11 @@ func (s *commentSrv) GetCommentRepliesByID(ids []int64) ([]*core.CommentReplyFor return nil, nil } +func (s *commentSrv) GetCommentThumbsMap(tweetId int64) (cs.CommentThumbsMap, cs.CommentThumbsMap, error) { + // TODO + return nil, nil, debug.ErrNotImplemented +} + func (s *commentManageSrv) DeleteComment(comment *core.Comment) error { // TODO debug.NotImplemented() @@ -89,6 +95,26 @@ func (s *commentManageSrv) CreateCommentContent(content *core.CommentContent) (* return nil, nil } +func (s *commentManageSrv) ThumbsUpComment(userId int64, tweetId, commentId int64) error { + // TODO + return debug.ErrNotImplemented +} + +func (s *commentManageSrv) ThumbsDownComment(userId int64, tweetId, commentId int64) error { + // TODO + return debug.ErrNotImplemented +} + +func (s *commentManageSrv) ThumbsUpReply(userId int64, tweetId, commentId, replyId int64) error { + // TODO + return debug.ErrNotImplemented +} + +func (s *commentManageSrv) ThumbsDownReply(userId int64, tweetId, commentId, replyId int64) error { + // TODO + return debug.ErrNotImplemented +} + func newCommentService(db *pgx.Conn) core.CommentService { return &commentSrv{ pgxSrv: newPgxSrv(db),