return_pkg

package
v0.0.0-...-489c00f Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinResponse

func GinResponse(httpstatus int32, code int32, msg string, detail string, data interface{}, c *gin.Context)

---------------------------正常返回,有查询结果-----------------------------

func NorMalResponse

func NorMalResponse(code int32, msg string, data interface{}, r *http.Request, w http.ResponseWriter)

Types

type Result

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

func NewResult

func NewResult() *Result

Jump to

Keyboard shortcuts

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