From 06f55083bd2142e8528766778329f5e427078f93 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Tue, 8 Aug 2023 21:12:32 +0800 Subject: [PATCH] sqlx: fixed error for tweet logic implement --- internal/dao/sakila/tweets.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/internal/dao/sakila/tweets.go b/internal/dao/sakila/tweets.go index bab7fe35..03a55f61 100644 --- a/internal/dao/sakila/tweets.go +++ b/internal/dao/sakila/tweets.go @@ -263,6 +263,11 @@ func (s *tweetManageSrv) StickPost(r *ms.Post) error { return err } +func (s *tweetManageSrv) HighlightPost(userId, postId int64) (int, error) { + // TODO + return 0, cs.ErrNotImplemented +} + func (s *tweetManageSrv) VisiblePost(post *ms.Post, visibility core.PostVisibleT) (err error) { oldVisibility := post.Visibility post.Visibility = visibility @@ -360,11 +365,16 @@ func (s *tweetSrv) GetUserPostStar(postID, userID int64) (res *ms.PostStar, err return } -func (s *tweetSrv) GetUserPostStars(userID int64, offset, limit int) (res []*ms.PostStar, err error) { +func (s *tweetSrv) GetUserPostStars(userID int64, limit int, offset int) (res []*ms.PostStar, err error) { err = s.q.GetUserPostStar.Select(&res, userID, userID, limit, offset) return } +func (s *tweetSrv) ListUserStarTweets(user *cs.VistUser, limit int, offset int) ([]*ms.PostStar, int64, error) { + // TODO + return nil, 0, cs.ErrNotImplemented +} + func (s *tweetSrv) GetUserPostStarCount(userID int64) (res int64, err error) { err = s.q.GetUserPostStarCount.Get(&res, userID, userID) return