From 888c1c93a824748f88297d200507bdbdcc0bfa01 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Sun, 7 Jan 2024 15:03:26 +0800 Subject: [PATCH] add missing method for slonik/topic --- internal/dao/slonik/topics.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/dao/slonik/topics.go b/internal/dao/slonik/topics.go index a3f6e646..b29ed7b3 100644 --- a/internal/dao/slonik/topics.go +++ b/internal/dao/slonik/topics.go @@ -175,7 +175,7 @@ func (s *topicSrv) GetNewestTags(userId int64, limit int, offset int) (cs.TagLis return nil, debug.ErrNotImplemented } -func (s *topicSrv) GetFollowTags(userId int64, limit int, offset int) (cs.TagList, error) { +func (s *topicSrv) GetFollowTags(userId int64, isPin bool, limit int, offset int) (cs.TagList, error) { // TODO return nil, debug.ErrNotImplemented } @@ -195,6 +195,11 @@ func (s *topicSrv) StickTopic(userId int64, topicId int64) (int8, error) { return 0, debug.ErrNotImplemented } +func (s *topicSrv) PinTopic(userId int64, topicId int64) (int8, error) { + // TODO + return 0, debug.ErrNotImplemented +} + func newTopicService(db *pgx.Conn) core.TopicService { return &topicSrv{ pgxSrv: newPgxSrv(db),