model

package
v1.0.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Carrying

type Carrying struct {
	Id   int64  `json:"id"`
	Name string `json:"name"`
	Lat  string `json:"lat"`
	Lng  string `json:"lng"`
}

func (*Carrying) GetById

func (carrying *Carrying) GetById(id string) error

type Client

type Client struct {
	Id    int64  `json:"id"`
	Name  string `json:"name"`
	Email string `json:"email"`
	Phone string `json:"phone"`
}

func (*Client) GetById

func (client *Client) GetById(idClient string) error

type Courier

type Courier struct {
	Id       int64   `json:"id"`
	Driver   Driver  `json:"driver"`
	Products Product `json:"product"`
}

type Destination

type Destination struct {
	Id       int64  `json:"id"`
	Street   string `json:"street"`
	District string `json:"district"`
	City     string `json:"city"`
	Country  string `json:"country"`
	State    string `json:"state"`
	Number   string `json:"number"`
	Lat      string `json:"lat"`
	Lng      string `json:"lng"`
	Client   Client `json:"client"`
}

func (*Destination) DestinationGetByClientId

func (destination *Destination) DestinationGetByClientId(idClient string) error

type Driver

type Driver struct {
	Id       int64    `json:"id"`
	Name     string   `json:"name"`
	Image    string   `json:"image"`
	Carrying Carrying `json:"Carrying"`
	Truck    Truck    `json:"truck"`
}

type Product

type Product struct {
	Id     int64  `json:"id"`
	Name   string `json:"name"`
	Price  string `json:"price"`
	Client Client `json:"Client"`
}

type Truck

type Truck struct {
	Id    int64  `json:"id"`
	Brand string `json:"brand"`
	Model string `json:"model"`
	Year  string `json:"year"`
	Plate string `json:"plate"`
}

Jump to

Keyboard shortcuts

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