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 `bson:"_id" json:"id"` AppUserID bson.ObjectId `bson:"appUserID" json:"appUserID"` Address string `bson:"address" json:"address"` Status int `bson:"status" json:"status"` Position Point `bson:"position" json:"position"` }
Park represents an entire parking lot, which has one or more slots in which cars are parked
type Point ¶
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 `bson:"_id" json:"id"` ParkID bson.ObjectId `bson:"parkID,omitempty" json:"parkID"` Position Point `bson:"position" json:"position"` IsOccupied bool `bson:"isOccupied" json:"isOccupied"` }
Slot reprents a square in a parking lot, where the car is parked
Click to show internal directories.
Click to hide internal directories.