recipe

package
v0.0.0-...-d1a115e Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRecipeDTO

type CreateRecipeDTO struct {
	Name        string       `json:"name"`
	CreatedBy   string       `json:"created_by"`
	Ingredients []Ingredient `json:"ingredients,omitempty"`
	Steps       []Step       `json:"steps,omitempty"`
}

type Ingredient

type Ingredient struct {
	IngredientID string  `json:"ingredient_id" bson:"ingredient_id"`
	Unit         string  `json:"unit" bson:"unit"`
	Amount       float64 `json:"amount" bson:"amount"`
}

type Recipe

type Recipe struct {
	ID          string       `json:"id" bson:"_id,omitempty"`
	Name        string       `json:"name" bson:"name,omitempty"`
	CreatedBy   string       `json:"created_by" bson:"created_by,omitempty"`
	Ingredients []Ingredient `json:"ingredients,omitempty" bson:"ingredients,omitempty"`
	Steps       []Step       `json:"steps,omitempty" bson:"steps,omitempty"`
}

type Step

type Step struct {
	Description string `json:"description" bson:"description"`
}

type UpdateRecipeDTO

type UpdateRecipeDTO struct {
	ID          string       `json:"id"`
	Name        string       `json:"name"`
	Ingredients []Ingredient `json:"ingredients,omitempty"`
	Steps       []Step       `json:"steps,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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