From a4e24c61c1820e5690e66a4763c17764912426d0 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Thu, 20 Apr 2023 18:01:34 +0800 Subject: [PATCH] sqlx: fixed miss method error --- internal/dao/sakila/topics.go | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/internal/dao/sakila/topics.go b/internal/dao/sakila/topics.go index 1f00ea6d..669a87d7 100644 --- a/internal/dao/sakila/topics.go +++ b/internal/dao/sakila/topics.go @@ -12,6 +12,7 @@ import ( "github.com/rocboss/paopao-ce/internal/core" "github.com/rocboss/paopao-ce/internal/core/cs" "github.com/rocboss/paopao-ce/internal/dao/sakila/yesql/cc" + "github.com/rocboss/paopao-ce/pkg/debug" ) var ( @@ -113,6 +114,36 @@ func (s *topicSrvA) TagsByKeyword(keyword string) (res cs.TagInfoList, err error return } +func (s *topicSrvA) GetHotTags(userId int64, limit int, offset int) (cs.TagList, error) { + // TODO + return nil, debug.ErrNotImplemented +} + +func (s *topicSrvA) GetNewestTags(userId int64, limit int, offset int) (cs.TagList, error) { + // TODO + return nil, debug.ErrNotImplemented +} + +func (s *topicSrvA) GetFollowTags(userId int64, limit int, offset int) (cs.TagList, error) { + // TODO + return nil, debug.ErrNotImplemented +} + +func (s *topicSrvA) FollowTopic(userId int64, topicId int64) error { + // TODO + return debug.ErrNotImplemented +} + +func (s *topicSrvA) UnfollowTopic(userId int64, topicId int64) error { + // TODO + return debug.ErrNotImplemented +} + +func (s *topicSrvA) StickTopic(userId int64, topicId int64) (int8, error) { + // TODO + return 0, debug.ErrNotImplemented +} + func newTopicService(db *sqlx.DB) core.TopicService { return &topicSrvA{ sqlxSrv: newSqlxSrv(db),