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" "penahub.gitlab.yandexcloud.net/backend/quiz/common.git/utils" ) type Deps struct { Repository *dal.AmoDal Logger *zap.Logger SocialAuthClient *pena_social_auth.Client AmoClient *amoClient.Amo Encrypt *utils.Encrypt } type Service struct { repository *dal.AmoDal logger *zap.Logger socialAuthClient *pena_social_auth.Client amoClient *amoClient.Amo encrypt *utils.Encrypt } func NewService(deps Deps) *Service { return &Service{ repository: deps.Repository, logger: deps.Logger, socialAuthClient: deps.SocialAuthClient, amoClient: deps.AmoClient, encrypt: deps.Encrypt, } }