ch panel statistik
This commit is contained in:
21
internal/analytics/storage.go
Normal file
21
internal/analytics/storage.go
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user