1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: generate leaderboard when enabled in user settings

This commit is contained in:
Ferdinand Mütsch
2022-10-02 10:13:39 +02:00
parent 13a3d9f03a
commit 4a22a19cb0
7 changed files with 49 additions and 10 deletions

View File

@@ -100,6 +100,7 @@ type IReportService interface {
type ILeaderboardService interface {
ScheduleDefault()
Run([]*models.User, *models.IntervalKey, []uint8) error
ExistsAnyByUser(string) (bool, error)
GetByInterval(*models.IntervalKey) ([]*models.LeaderboardItem, error)
GetAggregatedByInterval(*models.IntervalKey, *uint8) ([]*models.LeaderboardItem, error)
GenerateByUser(*models.User, *models.IntervalKey) (*models.LeaderboardItem, error)