weekplan

package
v0.0.0-...-96aa2c8 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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