controller

package
v0.0.0-...-7f56aba Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 17 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 OrderItemOrderCreator

func OrderItemOrderCreator(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
	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
y or Y : Canonical URL