package domain type TicketOutcome struct { ID int64 `json:"id" example:"1"` TicketID int64 `json:"ticket_id" example:"1"` EventID int64 `json:"event_id" example:"1"` OddID int64 `json:"odd_id" example:"1"` } type CreateTicketOutcome struct { TicketID int64 EventID int64 OddID int64 } // ID will serve as the fast code since this doesn't need to be secure type Ticket struct { ID int64 Amount Currency TotalOdds float32 } type GetTicket struct { ID int64 Amount Currency TotalOdds float32 Outcomes []TicketOutcome } type CreateTicket struct { Amount Currency TotalOdds float32 }