controllers

package
v0.0.0-...-bc6e940 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package controllers contains the common functions and structures for the controllers

Package controllers contains the common functions and structures for the controllers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindJSON

func BindJSON(c *gin.Context, request interface{}) (err error)

BindJSON is a function that binds the request body to the given struct and rewrite the request body on the context

func BindJSONMap

func BindJSONMap(c *gin.Context, request *map[string]interface{}) (err error)

BindJSONMap is a function that binds the request body to the given map and rewrite the request body on the context

Types

type JSONSwagger

type JSONSwagger struct {
}

JSONSwagger is a struct that contains the swagger documentation

type MessageResponse

type MessageResponse struct {
	Message string `json:"message"`
}

MessageResponse is a struct that contains the response body for the message

Directories

Path Synopsis
Package diner contains the diner controller
Package diner contains the diner controller
Package errors contains the error handler controller
Package errors contains the error handler controller
Package menu contains the menu controller
Package menu contains the menu controller
Package order contains the order controller
Package order contains the order controller

Jump to

Keyboard shortcuts

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