Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewRankingBiz)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type RankingBiz ¶
type RankingBiz struct {
// contains filtered or unexported fields
}
func NewRankingBiz ¶
func NewRankingBiz(data RankingData) *RankingBiz
func (*RankingBiz) ListTopN ¶
func (b *RankingBiz) ListTopN(ctx context.Context, pagination domain.Pagination) ([]domain.RankingPost, error)
type RankingData ¶
type RankingData interface {
TopN(ctx context.Context) error
ListTopN(ctx context.Context, pagination domain.Pagination) ([]domain.RankingPost, error)
}
Click to show internal directories.
Click to hide internal directories.