response

package
v1.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleResponse

func HandleResponse(ctx *gin.Context, err error, response interface{})

func HandleResponseWithStatus

func HandleResponseWithStatus(ctx *gin.Context, status int, err error, response interface{})

Types

type BaseResponse

type BaseResponse struct {
	errors.Code
	Data interface{} `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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