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

26 lines
611 B
Go

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