controller

package
Version: v0.0.0-...-dbce6a0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFood

func CreateFood(response http.ResponseWriter, request *http.Request)

CreateFood for creating foods

func CreateInvoice

func CreateInvoice(response http.ResponseWriter, request *http.Request)

CreateInvoice for creating invoices

func CreateMenu

func CreateMenu(response http.ResponseWriter, request *http.Request)

CreateMenu for creating menus

func CreateOrder

func CreateOrder(response http.ResponseWriter, request *http.Request)

CreateOrder for creating orders

func CreateOrderItem

func CreateOrderItem(response http.ResponseWriter, request *http.Request)

CreateOrderItem for creating orderItems

func CreateTable

func CreateTable(response http.ResponseWriter, request *http.Request)

CreateTable for creating tables

func GetFood

func GetFood(response http.ResponseWriter, request *http.Request)

GetFood is the api used to tget a single food

func GetFoods

func GetFoods(response http.ResponseWriter, request *http.Request)

GetFoods is the api used to get a multiple foods

func GetInvoice

func GetInvoice(response http.ResponseWriter, request *http.Request)

GetInvoice is the api used to tget a single invoice

func GetInvoices

func GetInvoices(response http.ResponseWriter, request *http.Request)

GetInvoices is the api used to get a multiple invoices

func GetMenu

func GetMenu(response http.ResponseWriter, request *http.Request)

GetMenu is the api used to tget a single menu

func GetMenus

func GetMenus(response http.ResponseWriter, request *http.Request)

GetMenus is the api used to get a multiple menus

func GetOrder

func GetOrder(response http.ResponseWriter, request *http.Request)

GetOrder is the api used to tget a single order

func GetOrderItem

func GetOrderItem(response http.ResponseWriter, request *http.Request)

GetOrderItem is the api used to tget a single orderItem

func GetOrderItems

func GetOrderItems(response http.ResponseWriter, request *http.Request)

GetOrderItems is the api used to get a multiple orderItems

func GetOrderItemsByOrder

func GetOrderItemsByOrder(response http.ResponseWriter, request *http.Request)

GetOrderItems is the api used to get a multiple orderItems

func GetOrders

func GetOrders(response http.ResponseWriter, request *http.Request)

GetOrders is the api used to get a multiple orders

func GetTable

func GetTable(response http.ResponseWriter, request *http.Request)

GetTable is the api used to tget a single table

func GetTables

func GetTables(response http.ResponseWriter, request *http.Request)

GetTables is the api used to get a multiple tables

func ItemsByOrder

func ItemsByOrder(id string) (OrderItems []primitive.M, err error)

func OrderItemOrderCreator

func OrderItemOrderCreator(order models.Order) string

OrderItemOrderCreator is for creating orders for the order items

func UpdateFood

func UpdateFood(response http.ResponseWriter, request *http.Request)

UpdateFood is used to update foods

func UpdateInvoice

func UpdateInvoice(response http.ResponseWriter, request *http.Request)

UpdateInvoice is used to update invoices

func UpdateMenu

func UpdateMenu(response http.ResponseWriter, request *http.Request)

UpdateMenu is used to update menus

func UpdateOrder

func UpdateOrder(response http.ResponseWriter, request *http.Request)

UpdateOrder is used to update orders

func UpdateOrderItem

func UpdateOrderItem(response http.ResponseWriter, request *http.Request)

UpdateOrderItem is used to update orderItems

func UpdateTable

func UpdateTable(response http.ResponseWriter, request *http.Request)

UpdateTable is used to update tables

Types

type InvoiceViewFormat

type InvoiceViewFormat struct {
	Invoice_id       string
	Payment_method   string
	Order_id         string
	Payment_status   *string
	Payment_due      interface{}
	Table_number     interface{}
	Payment_due_date time.Time
	Order_details    interface{}
}

type OrderItemPack

type OrderItemPack struct {
	Table_id    *string
	Order_items []models.OrderItem
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL