model

package
v0.0.0-...-d09ac20 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fail

func Fail(status int, g *gin.Context)

func FailWithData

func FailWithData(status int, data interface{}, g *gin.Context)

func Success

func Success(data interface{}, g *gin.Context)

Types

type Response

type Response struct {
	Status int          `json:"status"`
	Msg    string       `json:"msg"`
	Data   interface{}  `json:"data"`
	G      *gin.Context `json:"-"`
}

func (*Response) Res

func (r *Response) Res()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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