middleware

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Actor

func Actor(c *gin.Context) *admin.Actor

func Audit

func Audit(db *gorm.DB) gin.HandlerFunc

Audit 记录写操作的参数与JSON响应;登录、密码、配置和上传不记录正文。

func CORS

func CORS(origins []string) gin.HandlerFunc

CORS 支持任意来源或明确域名列表,跨域登录使用 Bearer 凭证。

func Locale

func Locale(c *gin.Context)

func RecordAudit

func RecordAudit(db *gorm.DB, c *gin.Context, kind string, status int, message string)

func Require

func Require(a *admin.App, permission string) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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