controllers

package
v0.0.0-...-0b04f58 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFood

func CreateFood() gin.HandlerFunc

func CreateInvoice

func CreateInvoice() gin.HandlerFunc

func CreateMenu

func CreateMenu() gin.HandlerFunc

func CreateOrder

func CreateOrder() gin.HandlerFunc

func CreateOrderItem

func CreateOrderItem() gin.HandlerFunc

func CreateTable

func CreateTable() gin.HandlerFunc

func GetFood

func GetFood() gin.HandlerFunc

func GetFoods

func GetFoods() gin.HandlerFunc

func GetInvoice

func GetInvoice() gin.HandlerFunc

func GetInvoices

func GetInvoices() gin.HandlerFunc

func GetMenu

func GetMenu() gin.HandlerFunc

func GetMenus

func GetMenus() gin.HandlerFunc

func GetOrder

func GetOrder() gin.HandlerFunc

func GetOrderItem

func GetOrderItem() gin.HandlerFunc

func GetOrderItems

func GetOrderItems() gin.HandlerFunc

func GetOrderItemsByOrder

func GetOrderItemsByOrder() gin.HandlerFunc

func GetOrders

func GetOrders() gin.HandlerFunc

func GetTable

func GetTable() gin.HandlerFunc

func GetTables

func GetTables() gin.HandlerFunc

func GetUser

func GetUser() gin.HandlerFunc

func GetUsers

func GetUsers() gin.HandlerFunc

func HashPassword

func HashPassword(password string) string

func ItemsByOrder

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

func Login

func Login() gin.HandlerFunc

func OrderItemCreator

func OrderItemCreator(order models.Order) string

func SignUp

func SignUp() gin.HandlerFunc

func UpdateFood

func UpdateFood() gin.HandlerFunc

func UpdateInvoice

func UpdateInvoice() gin.HandlerFunc

func UpdateMenu

func UpdateMenu() gin.HandlerFunc

func UpdateOrder

func UpdateOrder() gin.HandlerFunc

func UpdateOrderItem

func UpdateOrderItem() gin.HandlerFunc

func UpdateTable

func UpdateTable() gin.HandlerFunc

func VerifyPassword

func VerifyPassword(userPassword string, providedPassword string) (bool, string)

Types

type InvoiceViewFormat

type InvoiceViewFormat struct {
	Invoice_id       string
	Payment_method   string
	Payment_status   *string
	Payment_due      interface{}
	Payment_due_date time.Time
	Table_number     interface{}
	Order_id         string
	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
y or Y : Canonical URL