model

package
v0.0.0-...-37af083 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Car

type Car struct {
	ID     int      `json:"-"`
	Regnum string   `json:"rn"`
	Model  CarModel `json:"model"`
}

type CarInfo

type CarInfo struct {
	Car
	Department string    `json:"department"`
	Dateoper   time.Time `json:"dateoper"`
	IsRental   int       `json:"isrent"`
	Agent      string    `json:"agent"`
}

type CarInfoResponse

type CarInfoResponse struct {
	Response
	Data CarInfo `json:"data"`
}

type CarModel

type CarModel struct {
	ID   int     `json:"-"`
	Name string  `json:"name"`
	Type CarType `json:"cartype"`
}

CarModel - Модель ТС

type CarType

type CarType struct {
	ID   int    `json:"-"`
	Name string `json:"type"`
	Code string `json:"code"`
}

CarType тип ТС

type CarsResponse

type CarsResponse struct {
	Response
	Data []Car `json:"data"`
}

type Department

type Department struct {
	ID   int    `json:"-"`
	Name string `json:"name"`
}

Department - подразделения проката ТС

type DepartmentsResponse

type DepartmentsResponse struct {
	Response
	Data []Department `json:"data"`
}

type RentData

type RentData struct {
	Type     string    `json:"type"`
	Model    string    `json:"model"`
	RN       string    `json:"rn"`
	Dateoper time.Time `json:"dateoper"`
	Agent    string    `json:"agent"`
	Oper     string    `json:"oper"`
	Dept     string    `json:"dept"`
}

type RentDataResponse

type RentDataResponse struct {
	Response
	Data []RentData `json:"data"`
}

type Response

type Response struct {
	ContentType string `json:"content,omitempty"`
	Error       string `json:"error,omitempty"`
	Message     string `json:"message,omitempty"`
}

type StatsDepartment

type StatsDepartment struct {
	Department string      `json:"department"`
	Stats      []StatsItem `json:"entities"`
}

type StatsDepartmentoResponse

type StatsDepartmentoResponse struct {
	Response
	Data []StatsDepartment `json:"data"`
}

type StatsItem

type StatsItem struct {
	Entity      string        `json:"entity"`
	Count       int           `json:"count"`
	Duration    time.Duration `json:"-"`
	DurationStr string        `json:"avgduration"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL