resource

package
v0.0.0-...-26336ce Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(ctx *gin.Context, err error)

func Fail

func Fail(ctx *gin.Context, err error)

func Response

func Response(ctx *gin.Context, value interface{}, err error)

func Success

func Success(ctx *gin.Context, value interface{}, message interface{})

func Unauthorized

func Unauthorized(ctx *gin.Context, err error)

func UploadSuccess

func UploadSuccess(ctx *gin.Context, value interface{}, message interface{})

Types

type Result

type Result struct {
	Value interface{}
	Error interface{}
}

Jump to

Keyboard shortcuts

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