gin

package
Version: v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth added in v1.2.0

func Auth() gin.HandlerFunc

Auth 返回会判断 Session 的中间件

func IsHavePermission added in v1.2.0

func IsHavePermission(permissionUUIDs []string, paramType int) gin.HandlerFunc

判断用户是否有某个权限

func RequestID

func RequestID() gin.HandlerFunc

RequestID adds a unique request id to the context

func RequestLog

func RequestLog(logger *zap.Logger) gin.HandlerFunc

func RequireSuperAdminAuth added in v1.2.0

func RequireSuperAdminAuth(c *gin.Context)

RequireSuperAdminAuth require super user role

func Response added in v1.4.0

func Response() gin.HandlerFunc

Response handle response

func StoreProductName added in v1.2.0

func StoreProductName(c *gin.Context)

func UpdateOperationLogStatus added in v1.2.0

func UpdateOperationLogStatus(c *gin.Context)

更新操作日志状态

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL