Files
online-backend/internal/analytics/storage.go
GuwandykA 29867561d1
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
ch panel statistik
2026-10-01 18:14:20 +05:00

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
}