22 lines
841 B
Go
22 lines
841 B
Go
package models
|
|
|
|
type ImportData struct {
|
|
Data []ImportFillup `json:"data" binding:"required"`
|
|
VehicleId string `json:"vehicleId" binding:"required"`
|
|
TimeZone string `json:"timezone" binding:"required"`
|
|
}
|
|
|
|
type ImportFillup struct {
|
|
VehicleID string `json:"vehicleId"`
|
|
FuelQuantity float32 `json:"fuelQuantity"`
|
|
PerUnitPrice float32 `json:"perUnitPrice"`
|
|
TotalAmount float32 `json:"totalAmount"`
|
|
OdoReading int `json:"odoReading"`
|
|
IsTankFull *bool `json:"isTankFull"`
|
|
HasMissedFillup *bool `json:"hasMissedFillup"`
|
|
Comments string `json:"comments"`
|
|
FillingStation string `json:"fillingStation"`
|
|
UserID string `json:"userId"`
|
|
Date string `json:"date"`
|
|
FuelSubType string `json:"fuelSubType"`
|
|
} |