32 lines
711 B
Go
32 lines
711 B
Go
package service
|
|
|
|
import (
|
|
"amocrm/pkg/amoClient"
|
|
pena_social_auth "amocrm/pkg/pena-social-auth"
|
|
"go.uber.org/zap"
|
|
"penahub.gitlab.yandexcloud.net/backend/quiz/common.git/dal"
|
|
)
|
|
|
|
type Deps struct {
|
|
Repository *dal.AmoDal
|
|
Logger *zap.Logger
|
|
SocialAuthClient *pena_social_auth.Client
|
|
AmoClient *amoClient.Amo
|
|
}
|
|
|
|
type Service struct {
|
|
repository *dal.AmoDal
|
|
logger *zap.Logger
|
|
socialAuthClient *pena_social_auth.Client
|
|
amoClient *amoClient.Amo
|
|
}
|
|
|
|
func NewService(deps Deps) *Service {
|
|
return &Service{
|
|
repository: deps.Repository,
|
|
logger: deps.Logger,
|
|
socialAuthClient: deps.SocialAuthClient,
|
|
amoClient: deps.AmoClient,
|
|
}
|
|
}
|