sys_hook

package
v0.0.0-...-1d4ee7a Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 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 InviteRegisterHookFunc

type InviteRegisterHookFunc func(ctx context.Context, state sys_enum.InviteType, invite *sys_model.InviteRes, registerInfo *sys_model.SysUser) (bool, error)

type InviteRegisterHookInfo

type InviteRegisterHookInfo struct {
	Key   sys_enum.InviteType
	Value InviteRegisterHookFunc
}

type InviteStateHookFunc

type InviteStateHookFunc func(ctx context.Context, state sys_enum.InviteState, invite *sys_model.InviteRes) error

InviteStateHookFunc 订阅邀约状态

type JwtHookFunc

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

type RoleMemberChangeHookFunc

type RoleMemberChangeHookFunc func(ctx context.Context, event sys_enum.RoleMemberChange, role sys_entity.SysRole, sysUser *sys_model.SysUser) (bool, error)

RoleMemberChangeHookFunc 团队成员发生更改处理逻辑

Jump to

Keyboard shortcuts

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