sys_hook

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditHookFunc

type AuditHookFunc func(ctx context.Context, state sys_enum.AuditEvent, info sys_entity.SysAudit) error

type AuditHookInfo

type AuditHookInfo struct {
	Key      sys_enum.AuditEvent
	Value    AuditHookFunc
	Category int `json:"category" dc:"业务类别"`
}

type AuthHookFunc

type AuthHookFunc func(ctx context.Context, actionType sys_enum.AuthActionType, info *sys_model.SysUser) error

type AuthHookInfo

type AuthHookInfo struct {
	Key      sys_enum.AuthActionType
	Value    AuthHookFunc
	UserType sys_enum.UserType `json:"userType" dc:"用户类型"`
}

type CasbinHookFunc

type CasbinHookFunc func(ctx context.Context, info sys_entity.SysUser) (bool, error)

type JwtHookFunc

type JwtHookFunc func(ctx context.Context, claims *sys_model.JwtCustomClaims) (*sys_model.JwtCustomClaims, error)

Jump to

Keyboard shortcuts

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