domain

package
v0.0.0-...-49a7f0e Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APPROVAL_PENDING = iota
	APPROVED
	REJECTED
	CANCEL_PENDING
	CANCELLED
	REVISION_PENDING
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeliveryInfo

type DeliveryInfo struct {
	ID      uuid.UUID
	Time    string
	Address string
}

type Order

type Order struct {
	ID             uuid.UUID
	ConsumerID     uuid.UUID
	RestaurantID   uuid.UUID
	OrderLineItems OrderLineItem
	DeliveryInfo   DeliveryInfo
	PaymentInfo    PaymentInfo
	State          int
}

type OrderLineItem

type OrderLineItem struct {
	ID       uuid.UUID
	Name     string
	Price    float32
	Quantity int
}

type PaymentInfo

type PaymentInfo struct {
	PaymentToken string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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