amocrm/internal/service/pipelines.go

26 lines
583 B
Go
Raw Normal View History

package service
import (
"amocrm/internal/models"
"context"
2024-04-12 16:39:51 +00:00
"go.uber.org/zap"
)
func (s *Service) UpdateListPipelines(ctx context.Context) error {
err := s.repository.UpdateListPipelines(ctx)
if err != nil {
return err
}
return nil
}
2024-04-12 16:39:51 +00:00
func (s *Service) GettingPipelinesFromCash(ctx context.Context, req *models.PaginationReq) (*models.UserListPipelinesResp, error) {
response, err := s.repository.GettingPipelinesFromCash(ctx, req)
if err != nil {
2024-04-12 16:39:51 +00:00
s.logger.Error("error getting pipelines with pagination", zap.Error(err))
return nil, err
}
return response, nil
}