resp

package
v1.0.21-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFailure

func DefaultFailure(c *gin.Context, data interface{})

func DefaultSuccess

func DefaultSuccess(c *gin.Context, data interface{})

func Failure

func Failure(c *gin.Context, msg string, data interface{})

func Success

func Success(c *gin.Context, msg string, data interface{})

Types

type Result

type Result struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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