controllers

package
v0.0.0-...-0836f1a Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 12 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 GetAllFoodItems

func GetAllFoodItems() gin.HandlerFunc

func GetAllInvoices

func GetAllInvoices() gin.HandlerFunc

func GetAllMenus

func GetAllMenus() gin.HandlerFunc

func GetAllOrderItems

func GetAllOrderItems() gin.HandlerFunc

func GetAllOrders

func GetAllOrders() gin.HandlerFunc

func GetAllTables

func GetAllTables() gin.HandlerFunc

func GetAllUsers

func GetAllUsers() gin.HandlerFunc

func GetDatabaseHealth

func GetDatabaseHealth(c *gin.Context)

func GetFoodByID

func GetFoodByID() gin.HandlerFunc

func GetInvoiceByID

func GetInvoiceByID() gin.HandlerFunc

func GetMenuByID

func GetMenuByID() gin.HandlerFunc

func GetOrderByID

func GetOrderByID() gin.HandlerFunc

func GetOrderItemByID

func GetOrderItemByID() gin.HandlerFunc

func GetOrderItemsByOrderID

func GetOrderItemsByOrderID() gin.HandlerFunc

func GetRouterHealth

func GetRouterHealth(c *gin.Context)

func GetTableByID

func GetTableByID() gin.HandlerFunc

func GetUserByID

func GetUserByID() gin.HandlerFunc

func Login

func Login() gin.HandlerFunc

func SignUp

func SignUp() gin.HandlerFunc

func UpdateFoodByID

func UpdateFoodByID() gin.HandlerFunc

func UpdateInvoiceByID

func UpdateInvoiceByID() gin.HandlerFunc

func UpdateMenuByID

func UpdateMenuByID() gin.HandlerFunc

func UpdateOrderByID

func UpdateOrderByID() gin.HandlerFunc

func UpdateOrderItemByID

func UpdateOrderItemByID() gin.HandlerFunc

func UpdateTableByID

func UpdateTableByID() gin.HandlerFunc

Types

type InvoiceViewFormat

type InvoiceViewFormat struct {
	InvoiceID      string
	PaymentMethod  string
	OrderID        string
	PaymentStatus  *string
	TableNumber    interface{}
	PaymentDueDate time.Time
	OrderDetails   interface{}
}

type OrderItemPack

type OrderItemPack struct {
	TableID    string `json:"tableId" binding:"required"`
	OrderItems []struct {
		FoodID   string `json:"foodId" binding:"required"`
		Quantity string `json:"quantity" binding:"required,oneof=S M L"`
	} `json:"orderItems" binding:"required"`
}

Jump to

Keyboard shortcuts

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