model

package
v0.0.0-...-fe2d2a6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyMenu

type EmptyMenu struct{}

EmptyMenu 何もない空のメニュー

type MatsuyaMenu

type MatsuyaMenu struct {
	Name           string  `name:"name" json:"name"`
	Type           string  `bson:"type" json:"type"`
	Price          int     `bson:"price" json:"price"`
	Calorie        int     `bson:"calorie" json:"calorie"`
	Protein        float64 `bson:"protein" json:"protein"`
	Lipid          float64 `bson:"lipid" json:"lipid"`
	Carbohydrate   float64 `bson:"carbohydrate" json:"carbohydrate"`
	Sodium         int     `bson:"sodium" json:"sodium"`
	SaltEquivalent float64 `bson:"saltEquivalent" json:"saltEquivalent"`
	Description    string  `bson:"description" json:"description"`
	ImageURL       string  `bson:"imageURL" json:"imageURL"`
}

MatsuyaMenu メニューのモデル

func UnmarshalMatsuyaMenu

func UnmarshalMatsuyaMenu(data []byte) (MatsuyaMenu, error)

UnmarshalMatsuyaMenu MatsuyaMenuをJSONからUnmershalする

func (*MatsuyaMenu) Marshal

func (r *MatsuyaMenu) Marshal() ([]byte, error)

Marshal MatsuyaMenuをJSONにする

Jump to

Keyboard shortcuts

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