dish

package
v0.0.0-...-e764b3d Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 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 Dish

type Dish struct {
	DishID           int64        `db:"dish_id" json:"dish_id"`
	DishName         string       `db:"name" json:"name"`
	Price            float64      `db:"price" json:"price"`
	IngredientsBytes []byte       `db:"ingredients"`
	Ingredients      []Ingredient `json:"ingredients"`
}

type Ingredient

type Ingredient struct {
	Name     string  `json:"name"`
	Price    float64 `json:"price"`
	Quantity int     `json:"quantity"`
}

type RecieveDish

type RecieveDish struct {
	DishID   int64   `db:"dish_id" json:"dish_id"`
	DishName string  `db:"dish_name" json:"name"`
	Price    float64 `db:"price" json:"price"`
}

Jump to

Keyboard shortcuts

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