middleware

package
v0.0.0-...-be974dd Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserId

func GetUserId(ctx *gin.Context) (int64, error)

获取JWT middleware解析过出的userId, 未经过JWT middleware解析时被调用,会返回错误

func JWT

func JWT(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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