package service

import (
	"github.com/go-nunu/nunu-layout-advanced/internal/repository"
	"github.com/go-nunu/nunu-layout-advanced/pkg/jwt"
	"github.com/go-nunu/nunu-layout-advanced/pkg/log"
	"github.com/go-nunu/nunu-layout-advanced/pkg/sid"
)

type Service struct {
	Logger *log.Logger
	sid *sid.Sid
	Jwt *jwt.JWT
	tm  repository.Transaction
}

func NewService(
	tm repository.Transaction,
	logger *log.Logger,
	sid *sid.Sid,
	jwt *jwt.JWT,
) *Service {
	return &Service{
		Logger: logger,
		sid:    sid,
		Jwt:    jwt,
		tm:     tm,
	}
}
