router

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

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequestResponse

func BadRequestResponse(c *gin.Context, optStatus string, description string)

func HttpResponse

func HttpResponse(c *gin.Context, httpCode int, data interface{}, debug interface{}, optStatus string, description string)

func InternalErrorResponse

func InternalErrorResponse(c *gin.Context, data interface{}, debug interface{}, optStatus string, description string)

func JsonResponse

func JsonResponse(c *gin.Context, data interface{}, debug interface{}, err error)

func QueryRouter

func QueryRouter(e *gin.Engine)

Types

type Response

type Response struct {
	OptStatus   string      `json:"OPT_STATUS"`
	Description string      `json:"DESCRIPTION"`
	Result      interface{} `json:"result"`
	Debug       interface{} `json:"debug"`
}

Jump to

Keyboard shortcuts

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