Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWeekplanServer ¶
func NewWeekplanServer() *weekplanServer
Types ¶
type Day ¶
type Day struct { Breakfast []recipe.Recipe `json:"breakfast"` Lunch []recipe.Recipe `json:"lunch"` Snack []recipe.Recipe `json:"snack"` Dinner []recipe.Recipe `json:"dinner"` }
WeekPlanDay is a model of a Day for a weekplan
type WeekPlan ¶
type WeekPlan struct { ID primitive.ObjectID `json:"id"` UserID string `json:"userId"` Year int `json:"year"` CalendarWeek int `json:"calendarWeek"` Monday Day `json:"monday"` Tuesday Day `json:"tuesday"` Wednesday Day `json:"wednesday"` Thursday Day `json:"thursday"` Friday Day `json:"friday"` Saturday Day `json:"saturday"` Sunday Day `json:"sunday"` Deleted bool `json:"deleted"` LastUpdated time.Time `json:"lastUpdated"` }
WeekPlan is a model of a week
Click to show internal directories.
Click to hide internal directories.