Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo interface {
PaginatedForUser(ctx context.Context, userID string, page filter.Page) (*models.PagedResult[operationsmodels.Operation], error)
}
Repo is an interface for operations repository.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a service for operations.
func NewService ¶
NewService creates a new service for operations.
func (*Service) PaginatedForUser ¶
func (s *Service) PaginatedForUser(ctx context.Context, userID string, page filter.Page) (*models.PagedResult[operationsmodels.Operation], error)
PaginatedForUser returns operations for a user based on userID and the provided paging options.
Click to show internal directories.
Click to hide internal directories.