Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookingDate ¶
type Vehicle ¶
type Vehicle struct { ID int64 `json:"id"` UUID uuid.UUID `json:"uuid"` RegistrationNumber string `json:"registartion_number"` Make string `json:"make"` Model string `json:"model"` FuelType FuelType `json:"fuel_type"` VehicleCategory *VehicleCategory `json:"vehicle_category"` Bookings []*Booking `json:"-"` }
type VehicleCategory ¶
type VehicleCategory struct { ID int64 `json:"id"` VehicleType VehicleType `json:"vehicle_type"` PricePerDay float32 `json:"price_per_day"` }
type VehicleType ¶
type VehicleType string
const ( SmallCar VehicleType = "SMALL_CAR" EstateCar VehicleType = "ESTATE_CAR" Van VehicleType = "VAN" )
Click to show internal directories.
Click to hide internal directories.