amocrm/internal/service/fields.go

26 lines
617 B
Go
Raw Normal View History

package service
import (
"context"
2024-04-12 16:39:51 +00:00
"go.uber.org/zap"
2024-04-17 12:21:06 +00:00
"penahub.gitlab.yandexcloud.net/backend/quiz/common.git/model"
)
2024-04-17 12:21:06 +00:00
func (s *Service) GettingFieldsFromCash(ctx context.Context, req *model.PaginationReq) (*model.UserListFieldsResp, error) {
response, err := s.repository.AmoRepo.GettingFieldsFromCash(ctx, req)
if err != nil {
2024-04-12 16:39:51 +00:00
s.logger.Error("error getting fields with pagination", zap.Error(err))
return nil, err
}
return response, nil
}
func (s *Service) UpdateListCustom(ctx context.Context) error {
2024-04-17 12:21:06 +00:00
err := s.repository.AmoRepo.UpdateListCustom(ctx)
if err != nil {
return err
}
return nil
}