response

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailReturn

func FailReturn(c *gin.Context, errorInfo *errcode.ErrorInfo, params ...interface{})

func SuccessFileReturn added in v1.2.3

func SuccessFileReturn(c *gin.Context, contentLength int64, contentType string, reader io.Reader, extraHeaders map[string]string)

func SuccessJsonReturn added in v1.2.3

func SuccessJsonReturn(c *gin.Context, v string)

SuccessJsonReturn given a key message for any value to return json

func SuccessReturn

func SuccessReturn(c *gin.Context, obj interface{})

Types

type SuccessInfo

type SuccessInfo struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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