mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
19 lines
520 B
Go
19 lines
520 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/hanzo-fi/go-libs/v5/pkg/storage/bun/paginate"
|
|
"github.com/hanzo-fi/payments/pkg/domain/models"
|
|
"github.com/hanzo-fi/payments/internal/storage"
|
|
)
|
|
|
|
func (s *Service) PaymentServiceUsersList(ctx context.Context, query storage.ListPSUsQuery) (*paginate.Cursor[models.PaymentServiceUser], error) {
|
|
psus, err := s.storage.PaymentServiceUsersList(ctx, query)
|
|
if err != nil {
|
|
return nil, newStorageError(err, "cannot list payment service users")
|
|
}
|
|
|
|
return psus, nil
|
|
}
|