biz

package
v0.0.0-...-fa05059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 3 Imported by: 0

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)

func (*RankingBiz) TopN

func (b *RankingBiz) TopN(ctx context.Context) error

type RankingData

type RankingData interface {
	TopN(ctx context.Context) error
	ListTopN(ctx context.Context, pagination domain.Pagination) ([]domain.RankingPost, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL