18 lines
474 B
Go
18 lines
474 B
Go
package result
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/SamuelTariku/FortuneBet-Backend/internal/domain"
|
|
)
|
|
|
|
type ResultService interface {
|
|
FetchAndProcessResults(ctx context.Context) error
|
|
FetchAndStoreResult(ctx context.Context, eventID string) error
|
|
}
|
|
|
|
type ResultLogStore interface {
|
|
CreateResultLog(ctx context.Context, result domain.CreateResultLog) (domain.ResultLog, error)
|
|
GetAllResultLog(ctx context.Context, filter domain.ResultFilter) ([]domain.ResultLog, error)
|
|
}
|