models

package
v0.0.0-...-30f60cc Latest Latest
Warning

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

Go to latest
Published: May 22, 2016 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 Park

type Park struct {
	ID        bson.ObjectId `json:"id"`
	AppUserID bson.ObjectId `json:"appUserID"`
	Address   string        `json:"address"`
	Status    int           `json:"status"`
	Position  Point         `json:"position"`
	Slots     []Slot        `json:"slots"`
}

Park struct

type Point

type Point struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
}

Point contains the left-upper and bottom-lower points of a rectangle in which an entire zone is located

type Slot

type Slot struct {
	ID         bson.ObjectId `json:"id"`
	Park       Park          `json:"park"`
	Position   Point         `json:"position"`
	IsOccupied bool          `json:"isOccupied"`
}

Slot reprents a square in a parking lot, where the car is parked

type SlotUpdate

type SlotUpdate struct {
	ParkID bson.ObjectId `json:"parkID"`
	Slot   Slot          `json:"slot"`
}

Jump to

Keyboard shortcuts

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