context

package
v0.0.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: MIT Imports: 3 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
	// contains filtered or unexported fields
}

func (Context) LoginUser

func (c Context) LoginUser() (*ent.User, error)

func (Context) Response

func (c Context) Response(code int, data interface{}, msg string)

func (*Context) SetLoginUser

func (c *Context) SetLoginUser(loginUser *ent.User)

Jump to

Keyboard shortcuts

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