middleware

package
v0.0.0-...-46ee16b Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(authService service.AuthService) gin.HandlerFunc

AuthMiddleware 创建认证中间件

func GetCustomerEmail

func GetCustomerEmail(c *gin.Context) string

GetCustomerEmail 从上下文中获取客户邮箱

func GetCustomerID

func GetCustomerID(c *gin.Context) uint

GetCustomerID 从上下文中获取客户ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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