models

package
v0.0.0-...-9d9e716 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponceRexGetVehcile

type ResponceRexGetVehcile struct {
	Payload interface{} `json:"payload"`
	Message string      `json:"message"`
	Code    string      `json:"code"`
	Status  int         `json:"status"`
}

type RexRansomOrder

type RexRansomOrder struct {
	ID                     int64   `json:"id"`
	VehiclesID             int64   `json:"vehicles_id"`
	RentUsersID            int64   `json:"rent_users_id"`
	TariffsID              int64   `json:"tariffs_id"`
	ContractDate           string  `json:"contract_date"`
	ContractEndAt          *string `json:"contract_end_at"`
	ContractEndDescription string  `json:"contract_end_description"`
	CreatedAt              string  `json:"created_at"`
	UpdatedAt              string  `json:"updated_at"`
	AchivedAt              string  `json:"achive_at"`
}

type RexRansomTariff

type RexRansomTariff struct {
	ID                                 int64   `json:"id"`
	VehiclesID                         int64   `json:"vehicles_id"`
	InitialFee                         int     `json:"initial_fee"`
	VehicleAmount                      string  `json:"vehicle_amount"`
	TrackerAmount                      string  `json:"tracker_amount"`
	VehicleTaxAmount                   string  `json:"vehicle_tax_amount"`
	RegistrationAmount                 string  `json:"registration_amount"`
	TrackerServiceAmount               string  `json:"tracker_service_amount"`
	InsuranceOsagoAmount               string  `json:"insurance_osago_amount"`
	Term                               int     `json:"term"`
	YearRate                           float64 `json:"year_rate"`
	InsuranceRate                      int     `json:"insurance_rate"`
	MonthPayment                       string  `json:"month_payment"`
	DayPayment                         string  `json:"day_payment"`
	TotalVehicleAmount                 string  `json:"total_vehicle_amount"`
	TotalVehicleWithoutInsuranceAmount string  `json:"total_vehicle_without_insurance_amount"`
	CreatedAt                          string  `json:"created_at"`
	UpdatedAt                          string  `json:"updated_at"`
	AchivedAt                          string  `json:"achive_at"`
}

func (*RexRansomTariff) ToInputCreateRansomTariff

func (from *RexRansomTariff) ToInputCreateRansomTariff(to *it.InputCreateRansomTariff)

type RexUser

type RexUser struct {
	ID         int64  `json:"id"`
	ExtID      int64  `json:"ext_id"`
	FirstName  string `json:"first_name"`
	LastName   string `json:"last_name"`
	MiddleName string `json:"middle_name"`
	Phone      string `json:"phone"`
	CreatedAt  string `json:"created_at"`
	UpdatedAt  string `json:"updated_at"`
	AchivedAt  string `json:"achive_at"`
}

func (*RexUser) ToInputCreateUser

func (from *RexUser) ToInputCreateUser(to *it.InputCreateUser)

type RexVehicle

type RexVehicle struct {
	ID           int64          `json:"id"`
	ExtID        int64          `json:"ext_id"`
	AccountsID   int64          `json:"accounts_id"`
	Number       string         `json:"number"`
	Mark         string         `json:"mark"`
	Model        string         `json:"model"`
	Type         string         `json:"type"`
	Sts          string         `json:"sts"`
	Win          string         `json:"win"`
	Width        *int           `json:"widht"`
	Height       *int           `json:"height"`
	Depth        *int           `json:"depth"`
	Capacity     *float32       `json:"capacity"`
	FuelTank     *int           `json:"fuel_tank"`
	SummerRate   *float32       `json:"summer_rate"`
	WinterRate   *float32       `json:"winter_rate"`
	Ransom       bool           `json:"ransom"`
	Description  string         `json:"description"`
	CreatedAt    string         `json:"created_at"`
	UpdatedAt    string         `json:"updated_at"`
	AchivedAt    string         `json:"achive_at"`
	Bodywork     string         `json:"bodywork"`      //Кузов
	Color        string         `json:"color"`         //цвет
	CustomFields datatypes.JSON `json:"custom_fields"` //ДЖОС ПОЛЯ
	Drive        string         `json:"drive"`         //Привод
	Engine       string         `json:"engine"`
	Kpp          string         `json:"kpp"` //Коробка передач
	Owner        string         `josn:"owner"`
	RentUsersID  *int           `json:"rent_users_id"`
	Salon        string         `json:"salon"`
	Year         string         `json:"year"`
}

func (*RexVehicle) ToInputCreateVehicle

func (from *RexVehicle) ToInputCreateVehicle(to *it.InputCreateVehicle)

type TokenHeader

type TokenHeader struct {
	Token string `header:"Token"`
}

Jump to

Keyboard shortcuts

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