Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Address ¶
type Address struct { City string `bson:"city" json:"city"` Name string `bson:"name" json:"name"` Description string `bson:"description" json:"description"` }
Address struct
type Cash ¶
type Cash struct { Type *CodeName `bson:"type" json:"type"` Currencies *Currencies `bson:"currencies" json:"currencies"` }
Cash struct
type CodeName ¶
type CodeName struct { Code string `bson:"code" json:"code"` Name string `bson:"name" json:"name"` }
CodeName struct
type Currencies ¶
type Currencies struct { In []CodeName `bson:"in" json:"in"` Out []CodeName `bson:"out" json:"out"` }
Currencies struct
type Location ¶
type Location struct { Type string `bson:"type" json:"type"` Coordinates []float64 `bson:"coordinates" json:"coordinates"` Distance float64 `bson:"distance" json:"distance"` }
Location struct
type Point ¶
type Point struct { ID bson.ObjectId `bson:"_id" json:"_id"` Code string `bson:"code" json:"code"` Name string `bson:"name" json:"name"` Address *Address `bson:"address" json:"address"` Cash *Cash `bson:"cash" json:"cash"` Issuer *CodeName `bson:"issuer" json:"issuer"` Location *Location `bson:"location" json:"location"` Type *CodeName `bson:"type" json:"type"` Schedules []*Schedule `bson:"schedules" json:"schedules"` IsNew bool `bson:"-" json:"isNew"` }
Point model
type Schedule ¶
type Schedule struct { Type CodeName `bson:"type" json:"type"` WorkingMode CodeName `bson:"workingMode" json:"workingMode"` Workdays []WorkDay `bson:"workdays" json:"workdays"` }
Schedule struct
type WorkDay ¶
type WorkDay struct { DayOfWeek string `bson:"dayOfWeek" json:"dayOfWeek"` IsHoliday bool `bson:"isHoliday" json:"isHoliday"` OpensAt string `bson:"opensAt,omitempty" json:"opensAt,omitempty"` ClosesAt string `bson:"closesAt,omitempty" json:"closesAt,omitempty"` }
WorkDay struct
func GetWorkDays ¶
GetWorkDays calc working days
Click to show internal directories.
Click to hide internal directories.