middleware

package
v0.4.16 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleWare added in v0.1.8

func AuthMiddleWare(ctx *gin.Context)

AuthMiddleWare .

func AuthMiddleWareCustomer added in v0.1.8

func AuthMiddleWareCustomer(ctx *gin.Context)

AuthMiddleWareCustomer .

func AuthMiddleWareEmployee added in v0.1.8

func AuthMiddleWareEmployee(ctx *gin.Context)

AuthMiddleWareEmployee .

func CORS

func CORS() gin.HandlerFunc

CORS 跨域

func CustomerHeader

func CustomerHeader() gin.HandlerFunc

CustomerHeader .

func Logger

func Logger() gin.HandlerFunc

Logger .

func LoginStatus added in v0.4.1

func LoginStatus() gin.HandlerFunc

LoginStatus 注入用户登录状态

Types

This section is empty.

Jump to

Keyboard shortcuts

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