response

package
v0.0.0-...-1d80bfb Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 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

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

func SuccessJsonReturn

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