30 lines
410 B
Go
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,
|
|
}
|
|
}
|