22 lines
739 B
Go
22 lines
739 B
Go
package analytics
|
|
|
|
import "context"
|
|
|
|
type Repository interface {
|
|
Finance(ctx context.Context, filter Filter) (FinanceDTO, error)
|
|
Backlog(ctx context.Context, filter Filter) (BacklogResponseDTO, error)
|
|
Branches(ctx context.Context, filter Filter) (BranchesDTO, error)
|
|
Products(ctx context.Context, filter Filter) (ProductsDTO, error)
|
|
Customers(ctx context.Context, filter Filter) (CustomersDTO, error)
|
|
System(ctx context.Context, filter Filter, opts SystemOptions) (SystemDTO, error)
|
|
}
|
|
|
|
// SystemOptions says which /system widgets the caller may see, so the
|
|
// repository skips queries whose result would be redacted anyway.
|
|
type SystemOptions struct {
|
|
Registration bool
|
|
Operators bool
|
|
CardBalances bool
|
|
OperatorLimit int
|
|
}
|