menu_config

package
v0.250115.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MenuItem struct {
	Code      string `hcl:"code,label"`
	Disabled  bool   `hcl:"disabled,optional"`
	Name      string `hcl:"name,optional"`
	XXX_Price int    `hcl:"price"` // use scaled `Price`, this is for decoding config only
	Scenario  string `hcl:"scenario"`
	CreamMax  uint8  `hcl:"creamMax,optional"`
	SugarMax  uint8  `hcl:"sugarMax,optional"`

	Price currency.Amount
	Doer  engine.Doer
}
func (m *MenuItem) String() string
type MenuStruct struct {
	DefaultCream    uint8 `hcl:"default_cream,optional"`
	DefaultCreamMax uint8 `hcl:"default_cream_max,optional"`
	DefaultSugar    uint8 `hcl:"default_sugar,optional"`
	DefaultSugarMax uint8 `hcl:"default_sugar_max,optional"`
	Items           map[string]MenuItem
}

type UIMenuStruct

type UIMenuStruct struct {
	SelectedItem  MenuItem
	Cream         uint8
	Sugar         uint8
	PaymenId      int64
	PaymentMethod tele_api.PaymentMethod
	PaymentType   tele_api.OwnerType
	QRPayAmount   uint32
}

type XXX_MenuStruct

type XXX_MenuStruct struct {
	XXX_Items []MenuItem `hcl:"item,block"`
}

Jump to

Keyboard shortcuts

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