25 lines
684 B
Go
25 lines
684 B
Go
package wallet
|
|
|
|
import (
|
|
"log/slog"
|
|
|
|
notificationservice "github.com/SamuelTariku/FortuneBet-Backend/internal/services/notfication"
|
|
)
|
|
|
|
type Service struct {
|
|
walletStore WalletStore
|
|
transferStore TransferStore
|
|
notificationStore notificationservice.NotificationStore
|
|
notificationSvc *notificationservice.Service
|
|
logger *slog.Logger
|
|
}
|
|
|
|
func NewService(walletStore WalletStore, transferStore TransferStore, notificationStore notificationservice.NotificationStore, logger *slog.Logger) *Service {
|
|
return &Service{
|
|
walletStore: walletStore,
|
|
transferStore: transferStore,
|
|
notificationStore: notificationStore,
|
|
logger: logger,
|
|
}
|
|
}
|