Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewRatingUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type RatingRepo ¶
type RatingUsecase ¶
type RatingUsecase struct {
// contains filtered or unexported fields
}
func NewRatingUsecase ¶
func NewRatingUsecase(repo RatingRepo, logger log.Logger) *RatingUsecase
func (*RatingUsecase) CreateRating ¶
CreateRating 添加一个评分
func (*RatingUsecase) GetAggregatedRating ¶
func (c *RatingUsecase) GetAggregatedRating(ctx context.Context, recordType, recordID uint64) (ar float64, err error)
GetAggregatedRating 获取平局的评分
Click to show internal directories.
Click to hide internal directories.