- 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.
12 lines
219 B
Go
12 lines
219 B
Go
package domain
|
|
|
|
// Company-level aggregated report
|
|
type CompanyStats struct {
|
|
CompanyID int64
|
|
CompanyName string
|
|
TotalBets int64
|
|
TotalCashIn float64
|
|
TotalCashOut float64
|
|
TotalCashBacks float64
|
|
}
|