26 lines
559 B
Go
26 lines
559 B
Go
package service
|
|
|
|
import (
|
|
"amocrm/internal/models"
|
|
"context"
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
func (s *Service) GettingStepsFromCash(ctx context.Context, req *models.PaginationReq) (*models.UserListStepsResp, error) {
|
|
response, err := s.repository.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.UpdateListSteps(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|