- Introduced EventWithSettings and EventWithSettingsRes structs for enhanced event data handling. - Implemented conversion functions for creating and updating event settings. - Added support for fetching events with settings from the database. - Created new report data structures for comprehensive reporting capabilities. - Implemented event statistics retrieval and filtering by league and sport. - Added handlers for event statistics endpoints in the web server. - Introduced DateInterval type for managing time intervals in reports.
13 lines
239 B
Go
13 lines
239 B
Go
package domain
|
|
|
|
// Branch-level aggregated report
|
|
type BranchStats struct {
|
|
BranchID int64
|
|
BranchName string
|
|
CompanyID int64
|
|
TotalBets int64
|
|
TotalCashIn float64
|
|
TotalCashOut float64
|
|
TotalCashBacks float64
|
|
}
|