- Added new notification handling in the wallet service to notify admins when wallet balances are low or insufficient. - Created a new file for wallet notifications and moved relevant functions from the wallet service to this new file. - Updated the wallet service to publish wallet events including wallet type. - Refactored the client code to improve readability and maintainability. - Enhanced the bet handler to support pagination and status filtering for bets. - Updated routes and handlers for user search functionality to improve clarity and organization. - Modified cron job scheduling to comment out unused jobs for clarity. - Updated the WebSocket broadcast to include wallet type in notifications. - Adjusted the makefile to include Kafka in the docker-compose setup for local development.
18 lines
477 B
Go
18 lines
477 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.ResultLogFilter) ([]domain.ResultLog, error)
|
|
}
|