18 lines
305 B
Go
18 lines
305 B
Go
|
package dailyplayerstats
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/tribalwarshelp/shared/models"
|
||
|
)
|
||
|
|
||
|
type FetchConfig struct {
|
||
|
Server string
|
||
|
Filter *models.DailyPlayerStatsFilter
|
||
|
Count bool
|
||
|
}
|
||
|
|
||
|
type Repository interface {
|
||
|
Fetch(ctx context.Context, cfg FetchConfig) ([]*models.DailyPlayerStats, int, error)
|
||
|
}
|