rest

package
v0.0.0-...-2be556a Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResponseData

func ResponseData(context *gin.Context, status int, payload interface{})

ResponseData params @context: *gin.Context status: int payload: interface{}

func ResponseList

func ResponseList(context *gin.Context, status int, payload interface{})

Response params @context: *gin.Context status: int payload: interface{}

func ResponseMessages

func ResponseMessages(context *gin.Context, status int, msg string)

ResponseMessages params @context: *gin.Context status: int msg: string

Types

type Respons

type Respons struct {
	Status  int         `json:"status"`
	Meta    int         `json:"meta"`
	Results interface{} `json:"results"`
}

Respons types

Jump to

Keyboard shortcuts

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