18 lines
818 B
Go
18 lines
818 B
Go
package league
|
|
|
|
// import (
|
|
// "context"
|
|
|
|
// "github.com/SamuelTariku/FortuneBet-Backend/internal/domain"
|
|
// )
|
|
|
|
// type LeagueStore interface {
|
|
// SaveLeague(ctx context.Context, league domain.CreateLeague) error
|
|
// SaveLeagueSettings(ctx context.Context, leagueSettings domain.CreateLeagueSettings) error
|
|
// GetAllLeagues(ctx context.Context, filter domain.LeagueFilter) ([]domain.BaseLeague, int64, error)
|
|
// GetAllLeaguesByCompany(ctx context.Context, companyID int64, filter domain.LeagueFilter) ([]domain.LeagueWithSettings, int64, error)
|
|
// CheckLeagueSupport(ctx context.Context, leagueID int64, companyID int64) (bool, error)
|
|
// UpdateLeague(ctx context.Context, league domain.UpdateLeague) error
|
|
// UpdateGlobalLeagueSettings(ctx context.Context, league domain.UpdateGlobalLeagueSettings) error
|
|
// }
|