middleware

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package middleware 业务中间件:与具体服务强相关,留在业务层。 中间件函数名由反射派生(contract.FuncName),文档侧在 main_doc.go 按函数引用注册文档钩子(可选择性标注,见 internal/openapi.RegisterMiddlewareDoc)。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(c *gin.Context)

Auth 示例鉴权中间件:Bearer token 校验,GIN_ENV=dev 时跳过。 挂在 contract.Group.Middlewares 上(如 app/routes/routes.go 的 users 组)。

Types

This section is empty.

Jump to

Keyboard shortcuts

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