ch panel statistik
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
2026-10-01 18:14:20 +05:00
parent ebedeba009
commit 29867561d1
9 changed files with 1436 additions and 0 deletions

View 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
}