Yimaru-BackEnd/internal/services/user/service.go
2025-06-10 09:56:54 +03:00

30 lines
410 B
Go

package user
import (
"time"
"github.com/SamuelTariku/FortuneBet-Backend/internal/config"
)
const (
OtpExpiry = 5 * time.Minute
)
type Service struct {
userStore UserStore
otpStore OtpStore
config *config.Config
}
func NewService(
userStore UserStore,
otpStore OtpStore,
cfg *config.Config,
) *Service {
return &Service{
userStore: userStore,
otpStore: otpStore,
config: cfg,
}
}