add missing method for slonik/topic

r/paopao-ce-pro
Michael Li 10 months ago
parent 50863097ab
commit 888c1c93a8
No known key found for this signature in database

@ -175,7 +175,7 @@ func (s *topicSrv) GetNewestTags(userId int64, limit int, offset int) (cs.TagLis
return nil, debug.ErrNotImplemented 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 // TODO
return nil, debug.ErrNotImplemented return nil, debug.ErrNotImplemented
} }
@ -195,6 +195,11 @@ func (s *topicSrv) StickTopic(userId int64, topicId int64) (int8, error) {
return 0, debug.ErrNotImplemented 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 { func newTopicService(db *pgx.Conn) core.TopicService {
return &topicSrv{ return &topicSrv{
pgxSrv: newPgxSrv(db), pgxSrv: newPgxSrv(db),

Loading…
Cancel
Save