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