middleware

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Jwt

func Jwt() *jwt.GinJWTMiddleware

func Logger

func Logger() gin.HandlerFunc

Logger 日志中间件

func SetUserInfo

func SetUserInfo() gin.HandlerFunc

GetUser 获取用户信息中间件

Types

type LoginUser

type LoginUser struct {
	UserID      int
	UserName    string
	LoginTime   time.Time
	Permissions []string //用户拥有的权限
}

Jump to

Keyboard shortcuts

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