Documentation ¶
Index ¶
- type Service
- func (s *Service) Close()
- func (s *Service) GetStatByID(ctx context.Context, oid int64, tp int, rpID int64) (stat *model.ReplyStat, err error)
- func (s *Service) GetStatsByID(ctx context.Context, oid int64, tp int, rpIDs []int64) (rs []*model.ReplyStat, err error)
- func (s *Service) GetStatsDB(ctx context.Context, oid int64, tp int) (rs []*model.ReplyStat, err error)
- func (s *Service) Ping(c context.Context) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct
func (*Service) GetStatByID ¶
func (s *Service) GetStatByID(ctx context.Context, oid int64, tp int, rpID int64) (stat *model.ReplyStat, err error)
GetStatByID 从缓存获取单条评论stat获取不到则从DB获取
func (*Service) GetStatsByID ¶
func (s *Service) GetStatsByID(ctx context.Context, oid int64, tp int, rpIDs []int64) (rs []*model.ReplyStat, err error)
GetStatsByID 从缓存获取多条评论stat获取不到则从DB获取
Click to show internal directories.
Click to hide internal directories.