context

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	*gin.Context
}

func WithGinContext

func WithGinContext(context *gin.Context) *Context

func (*Context) Failed

func (c *Context) Failed(err error, variables ...interface{})

func (*Context) FailedWithError

func (c *Context) FailedWithError(err error, httpCode ...int)

func (*Context) Success

func (c *Context) Success(data interface{}, metas ...interface{})

func (*Context) User

func (c *Context) User() *models2.User

Jump to

Keyboard shortcuts

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