sqlx: fixed miss method error

r/paopao-ce-plus
Michael Li 2 years ago
parent 39a53b97ca
commit a4e24c61c1
No known key found for this signature in database

@ -12,6 +12,7 @@ import (
"github.com/rocboss/paopao-ce/internal/core" "github.com/rocboss/paopao-ce/internal/core"
"github.com/rocboss/paopao-ce/internal/core/cs" "github.com/rocboss/paopao-ce/internal/core/cs"
"github.com/rocboss/paopao-ce/internal/dao/sakila/yesql/cc" "github.com/rocboss/paopao-ce/internal/dao/sakila/yesql/cc"
"github.com/rocboss/paopao-ce/pkg/debug"
) )
var ( var (
@ -113,6 +114,36 @@ func (s *topicSrvA) TagsByKeyword(keyword string) (res cs.TagInfoList, err error
return 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 { func newTopicService(db *sqlx.DB) core.TopicService {
return &topicSrvA{ return &topicSrvA{
sqlxSrv: newSqlxSrv(db), sqlxSrv: newSqlxSrv(db),

Loading…
Cancel
Save