amocrm/internal/service/pipelines.go
2024-04-17 15:21:06 +03:00

26 lines
635 B
Go

package service
import (
"context"
"go.uber.org/zap"
"penahub.gitlab.yandexcloud.net/backend/quiz/common.git/model"
)
func (s *Service) UpdateListPipelines(ctx context.Context) error {
err := s.repository.AmoRepo.UpdateListPipelines(ctx)
if err != nil {
return err
}
return nil
}
func (s *Service) GettingPipelinesFromCash(ctx context.Context, req *model.PaginationReq) (*model.UserListPipelinesResp, error) {
response, err := s.repository.AmoRepo.GettingPipelinesFromCash(ctx, req)
if err != nil {
s.logger.Error("error getting pipelines with pagination", zap.Error(err))
return nil, err
}
return response, nil
}