Discover Packages
github.com/arteev/er-task
src
model
package
Version:
v0.0.0-...-37af083
Opens a new window with list of versions in this module.
Published: Dec 19, 2017
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Car struct {
ID int `json:"-"`
Regnum string `json:"rn"`
Model CarModel `json:"model"`
}
type CarInfo struct {
Car
Department string `json:"department"`
Dateoper time .Time `json:"dateoper"`
IsRental int `json:"isrent"`
Agent string `json:"agent"`
}
type CarModel struct {
ID int `json:"-"`
Name string `json:"name"`
Type CarType `json:"cartype"`
}
CarModel - Модель ТС
type CarType struct {
ID int `json:"-"`
Name string `json:"type"`
Code string `json:"code"`
}
CarType тип ТС
type CarsResponse struct {
Response
Data []Car `json:"data"`
}
type Department struct {
ID int `json:"-"`
Name string `json:"name"`
}
Department - подразделения проката ТС
type Response struct {
ContentType string `json:"content,omitempty"`
Error string `json:"error,omitempty"`
Message string `json:"message,omitempty"`
}
type StatsDepartment struct {
Department string `json:"department"`
Stats []StatsItem `json:"entities"`
}
type StatsItem struct {
Entity string `json:"entity"`
Count int `json:"count"`
Duration time .Duration `json:"-"`
DurationStr string `json:"avgduration"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.